jiangguoqing / iac

0 stars 0 forks source link

Test #14

Closed jiangguoqing closed 1 year ago

jiangguoqing commented 1 year ago

atlantis plan -d ./

jiangguoqing commented 1 year ago

Ran Plan for dir: . workspace: default

Show Output ```diff Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: ~ update in-place - destroy Terraform will perform the following actions: # aws_instance.app_server will be updated in-place ~ resource "aws_instance" "app_server" { id = "i-0b246c8a941fca618" ~ tags = { ~ "Name" = "ExampleAppServer" -> "ExampleApp" } ~ tags_all = { ~ "Name" = "ExampleAppServer" -> "ExampleApp" } # (30 unchanged attributes hidden) # (7 unchanged blocks hidden) } # aws_instance.app_server_2 will be destroyed # (because aws_instance.app_server_2 is not in configuration) - resource "aws_instance" "app_server_2" { - ami = "ami-830c94e3" -> null - arn = "arn:aws:ec2:us-west-2:566420885017:instance/i-0c2099398cb7a9f1f" -> null - associate_public_ip_address = true -> null - availability_zone = "us-west-2a" -> null - cpu_core_count = 1 -> null - cpu_threads_per_core = 1 -> null - disable_api_stop = false -> null - disable_api_termination = false -> null - ebs_optimized = false -> null - get_password_data = false -> null - hibernation = false -> null - id = "i-0c2099398cb7a9f1f" -> null - instance_initiated_shutdown_behavior = "stop" -> null - instance_state = "running" -> null - instance_type = "t2.micro" -> null - ipv6_address_count = 0 -> null - ipv6_addresses = [] -> null - monitoring = false -> null - placement_partition_number = 0 -> null - primary_network_interface_id = "eni-04930c86d2f38b320" -> null - private_dns = "ip-172-31-21-244.us-west-2.compute.internal" -> null - private_ip = "172.31.21.244" -> null - public_dns = "ec2-52-38-229-199.us-west-2.compute.amazonaws.com" -> null - public_ip = "52.38.229.199" -> null - secondary_private_ips = [] -> null - security_groups = [ - "default", ] -> null - source_dest_check = true -> null - subnet_id = "subnet-0edeacc40aba3e414" -> null - tags = { - "Name" = "ExampleAppSer" } -> null - tags_all = { - "Name" = "ExampleAppSer" } -> null - tenancy = "default" -> null - user_data_replace_on_change = false -> null - vpc_security_group_ids = [ - "sg-0a147493ab5d08dfc", ] -> null - capacity_reservation_specification { - capacity_reservation_preference = "open" -> null } - credit_specification { - cpu_credits = "standard" -> null } - enclave_options { - enabled = false -> null } - maintenance_options { - auto_recovery = "default" -> null } - metadata_options { - http_endpoint = "enabled" -> null - http_put_response_hop_limit = 1 -> null - http_tokens = "optional" -> null - instance_metadata_tags = "disabled" -> 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 = 0 -> null - tags = {} -> null - throughput = 0 -> null - volume_id = "vol-0da3b974f6c3f7001" -> null - volume_size = 8 -> null - volume_type = "standard" -> null } } Plan: 0 to add, 1 to change, 1 to destroy. ``` * :arrow_forward: To **apply** this plan, comment: * `atlantis apply -d .` * :put_litter_in_its_place: To **delete** this plan click [here](https://fcf4-167-71-217-162.ap.ngrok.io/lock?id=jiangguoqing%252Fiac%252F.%252Fdefault) * :repeat: To **plan** this project again, comment: * `atlantis plan -d .`

Plan: 0 to add, 1 to change, 1 to destroy.


jiangguoqing commented 1 year ago

atlantis apply

jiangguoqing commented 1 year ago

Ran Apply for dir: . workspace: default

aws_instance.app_server_2: Destroying... [id=i-0c2099398cb7a9f1f]
aws_instance.app_server: Modifying... [id=i-0b246c8a941fca618]
aws_instance.app_server: Modifications complete after 4s [id=i-0b246c8a941fca618]
aws_instance.app_server_2: Still destroying... [id=i-0c2099398cb7a9f1f, 10s elapsed]
aws_instance.app_server_2: Still destroying... [id=i-0c2099398cb7a9f1f, 20s elapsed]
aws_instance.app_server_2: Still destroying... [id=i-0c2099398cb7a9f1f, 30s elapsed]
aws_instance.app_server_2: Destruction complete after 31s

Apply complete! Resources: 0 added, 1 changed, 1 destroyed.
jiangguoqing commented 1 year ago

.ok

jiangguoqing commented 1 year ago

Locks and plans deleted for the projects and workspaces modified in this pull request: