Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: delete unused dev desktop #631

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Conversation

MarcoIeni
Copy link
Member

@MarcoIeni MarcoIeni commented Nov 13, 2024

This EC2 was stopped on AWS for a long time. Discussed with JD: we can remove it.

@MarcoIeni
Copy link
Member Author

Plan:

  # aws_eip.dev_desktop will be destroyed
  # (because aws_eip.dev_desktop is not in configuration)
  - resource "aws_eip" "dev_desktop" {
      - allocation_id        = "eipalloc-0a281a4d15022ebde" -> null
      - arn                  = "arn:aws:ec2:us-west-1:890664054962:elastic-ip/eipalloc-0a281a4d15022ebde" -> null
      - association_id       = "eipassoc-03f4b992d3e6c9f90" -> null
      - domain               = "vpc" -> null
      - id                   = "eipalloc-0a281a4d15022ebde" -> null
      - instance             = "i-03a945d612a918c7d" -> null
      - network_border_group = "us-west-1" -> null
      - network_interface    = "eni-078821190a4e09d1c" -> null
      - private_dns          = "ip-10-0-0-211.us-west-1.compute.internal" -> null
      - private_ip           = "10.0.0.211" -> null
      - public_dns           = "ec2-184-169-215-66.us-west-1.compute.amazonaws.com" -> null
      - public_ip            = "184.169.215.66" -> null
      - public_ipv4_pool     = "amazon" -> null
      - tags                 = {
          - "Name" = "dev_desktop"
        } -> null
      - tags_all             = {
          - "Name" = "dev_desktop"
        } -> null
      - vpc                  = true -> null
    }

  # aws_eip_association.dev_desktop will be destroyed
  # (because aws_eip_association.dev_desktop is not in configuration)
  - resource "aws_eip_association" "dev_desktop" {
      - allocation_id        = "eipalloc-0a281a4d15022ebde" -> null
      - id                   = "eipassoc-03f4b992d3e6c9f90" -> null
      - instance_id          = "i-03a945d612a918c7d" -> null
      - network_interface_id = "eni-078821190a4e09d1c" -> null
      - private_ip_address   = "10.0.0.211" -> null
      - public_ip            = "184.169.215.66" -> null
    }

  # aws_instance.dev_desktop will be destroyed
  # (because aws_instance.dev_desktop is not in configuration)
  - resource "aws_instance" "dev_desktop" {
      - ami                                  = "ami-0487b1fe60c1fd1a2" -> null
      - arn                                  = "arn:aws:ec2:us-west-1:890664054962:instance/i-03a945d612a918c7d" -> null
      - associate_public_ip_address          = true -> null
      - availability_zone                    = "us-west-1c" -> null
      - cpu_core_count                       = 16 -> null
      - cpu_threads_per_core                 = 2 -> null
      - disable_api_stop                     = false -> null
      - disable_api_termination              = false -> null
      - ebs_optimized                        = true -> null
      - get_password_data                    = false -> null
      - hibernation                          = false -> null
      - id                                   = "i-03a945d612a918c7d" -> null
      - instance_initiated_shutdown_behavior = "stop" -> null
      - instance_state                       = "stopped" -> null
      - instance_type                        = "c5a.8xlarge" -> null
      - ipv6_address_count                   = 1 -> null
      - ipv6_addresses                       = [
          - "2600:1f1c:f21:3700:f321:c395:6187:558a",
        ] -> null
      - key_name                             = "buildbot-west-slave-key" -> null
      - monitoring                           = false -> null
      - placement_partition_number           = 0 -> null
      - primary_network_interface_id         = "eni-078821190a4e09d1c" -> null
      - private_dns                          = "ip-10-0-0-211.us-west-1.compute.internal" -> null
      - private_ip                           = "10.0.0.211" -> null
      - public_dns                           = "ec2-184-169-215-66.us-west-1.compute.amazonaws.com" -> null
      - public_ip                            = "184.169.215.66" -> null
      - secondary_private_ips                = [] -> null
      - security_groups                      = [] -> null
      - source_dest_check                    = true -> null
      - subnet_id                            = "subnet-097eabc9181d798ec" -> null
      - tags                                 = {
          - "Name" = "dev-desktop"
        } -> null
      - tags_all                             = {
          - "Name" = "dev-desktop"
        } -> null
      - tenancy                              = "default" -> null
      - vpc_security_group_ids               = [
          - "sg-0bb85ae55e05d6870",
        ] -> null

      - capacity_reservation_specification {
          - capacity_reservation_preference = "open" -> null
        }

      - cpu_options {
          - core_count       = 16 -> null
          - threads_per_core = 2 -> null
        }

      - enclave_options {
          - enabled = false -> null
        }

      - maintenance_options {
          - auto_recovery = "default" -> null
        }

      - metadata_options {
          - http_endpoint               = "enabled" -> null
          - http_protocol_ipv6          = "disabled" -> null
          - http_put_response_hop_limit = 1 -> null
          - http_tokens                 = "optional" -> null
          - instance_metadata_tags      = "disabled" -> null
        }

      - network_interface {
          - delete_on_termination = false -> null
          - device_index          = 0 -> null
          - network_card_index    = 0 -> null
          - network_interface_id  = "eni-078821190a4e09d1c" -> null
        }

      - private_dns_name_options {
          - enable_resource_name_dns_a_record    = false -> null
          - enable_resource_name_dns_aaaa_record = false -> null
          - hostname_type                        = "ip-name" -> null
        }

      - root_block_device {
          - delete_on_termination = true -> null
          - device_name           = "/dev/sda1" -> null
          - encrypted             = false -> null
          - iops                  = 3000 -> null
          - tags                  = {} -> null
          - tags_all              = {} -> null
          - throughput            = 125 -> null
          - volume_id             = "vol-0980f3928978e5981" -> null
          - volume_size           = 1000 -> null
          - volume_type           = "gp3" -> null
        }
    }

  # aws_network_interface.dev_desktop will be destroyed
  # (because aws_network_interface.dev_desktop is not in configuration)
  - resource "aws_network_interface" "dev_desktop" {
      - arn                       = "arn:aws:ec2:us-west-1:890664054962:network-interface/eni-078821190a4e09d1c" -> null
      - id                        = "eni-078821190a4e09d1c" -> null
      - interface_type            = "interface" -> null
      - ipv4_prefix_count         = 0 -> null
      - ipv4_prefixes             = [] -> null
      - ipv6_address_count        = 1 -> null
      - ipv6_address_list         = [
          - "2600:1f1c:f21:3700:f321:c395:6187:558a",
        ] -> null
      - ipv6_address_list_enabled = false -> null
      - ipv6_addresses            = [
          - "2600:1f1c:f21:3700:f321:c395:6187:558a",
        ] -> null
      - ipv6_prefix_count         = 0 -> null
      - ipv6_prefixes             = [] -> null
      - mac_address               = "02:6b:00:79:40:91" -> null
      - owner_id                  = "890664054962" -> null
      - private_dns_name          = "ip-10-0-0-211.us-west-1.compute.internal" -> null
      - private_ip                = "10.0.0.211" -> null
      - private_ip_list           = [
          - "10.0.0.211",
        ] -> null
      - private_ip_list_enabled   = false -> null
      - private_ips               = [
          - "10.0.0.211",
        ] -> null
      - private_ips_count         = 0 -> null
      - security_groups           = [
          - "sg-0bb85ae55e05d6870",
        ] -> null
      - source_dest_check         = true -> null
      - subnet_id                 = "subnet-097eabc9181d798ec" -> null
      - tags                      = {} -> null
      - tags_all                  = {} -> null

      - attachment {
          - attachment_id = "eni-attach-0ee580ef59dd69795" -> null
          - device_index  = 0 -> null
          - instance      = "i-03a945d612a918c7d" -> null
        }
    }

  # aws_route53_record.dev_desktop will be destroyed
  # (because aws_route53_record.dev_desktop is not in configuration)
  - resource "aws_route53_record" "dev_desktop" {
      - fqdn                             = "dev-desktop.infra.rust-lang.org" -> null
      - id                               = "Z237AC8WS9NFCS_dev-desktop.infra.rust-lang.org_A" -> null
      - multivalue_answer_routing_policy = false -> null
      - name                             = "dev-desktop.infra.rust-lang.org" -> null
      - records                          = [
          - "184.169.215.66",
        ] -> null
      - ttl                              = 60 -> null
      - type                             = "A" -> null
      - zone_id                          = "Z237AC8WS9NFCS" -> null
    }

  # aws_security_group.dev_desktop will be destroyed
  # (because aws_security_group.dev_desktop is not in configuration)
  - resource "aws_security_group" "dev_desktop" {
      - arn                    = "arn:aws:ec2:us-west-1:890664054962:security-group/sg-0bb85ae55e05d6870" -> null
      - description            = "Access rules for the production dev_desktop instance." -> null
      - egress                 = [
          - {
              - cidr_blocks      = [
                  - "0.0.0.0/0",
                ]
              - description      = "Allow all IPv4 egress traffic."
              - from_port        = 0
              - ipv6_cidr_blocks = []
              - prefix_list_ids  = []
              - protocol         = "-1"
              - security_groups  = []
              - self             = false
              - to_port          = 0
            },
          - {
              - cidr_blocks      = []
              - description      = "Allow all IPv6 egress traffic."
              - from_port        = 0
              - ipv6_cidr_blocks = [
                  - "::/0",
                ]
              - prefix_list_ids  = []
              - protocol         = "-1"
              - security_groups  = []
              - self             = false
              - to_port          = 0
            },
        ] -> null
      - id                     = "sg-0bb85ae55e05d6870" -> null
      - ingress                = [
          - {
              - cidr_blocks      = [
                  - "0.0.0.0/0",
                ]
              - description      = "Ping access from the world"
              - from_port        = 8
              - ipv6_cidr_blocks = [
                  - "::/0",
                ]
              - prefix_list_ids  = []
              - protocol         = "icmp"
              - security_groups  = []
              - self             = false
              - to_port          = -1
            },
          - {
              - cidr_blocks      = [
                  - "0.0.0.0/0",
                ]
              - description      = "SSH access from the world"
              - from_port        = 22
              - ipv6_cidr_blocks = [
                  - "::/0",
                ]
              - prefix_list_ids  = []
              - protocol         = "tcp"
              - security_groups  = []
              - self             = false
              - to_port          = 22
            },
          - {
              - cidr_blocks      = [
                  - "52.9.166.219/32",
                ]
              - description      = "node_exporter from monitoring.infra.rust-lang.org"
              - from_port        = 9100
              - ipv6_cidr_blocks = []
              - prefix_list_ids  = []
              - protocol         = "tcp"
              - security_groups  = []
              - self             = false
              - to_port          = 9100
            },
        ] -> null
      - name                   = "rust-prod-dev_desktop" -> null
      - owner_id               = "890664054962" -> null
      - revoke_rules_on_delete = false -> null
      - tags                   = {
          - "Name" = "rust-prod-dev_desktop"
        } -> null
      - tags_all               = {
          - "Name" = "rust-prod-dev_desktop"
        } -> null
      - vpc_id                 = "vpc-04755091e90b7ede6" -> null
    }

Plan: 0 to add, 0 to change, 6 to destroy.
╷
│ Warning: Argument is deprecated
│
│   with module.aws_us_east_1.aws_eip.dev_desktop,
│   on aws-region/instances.tf line 6, in resource "aws_eip" "dev_desktop":
│    6:   vpc = true
│
│ use domain attribute instead
│
│ (and 4 more similar warnings elsewhere)

@MarcoIeni
Copy link
Member Author

Applied:

Apply complete! Resources: 0 added, 0 changed, 6 destroyed.

@MarcoIeni MarcoIeni merged commit 1479b01 into master Nov 13, 2024
3 checks passed
@MarcoIeni MarcoIeni deleted the chore-delete-unused-dev-desktop branch November 13, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant