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

destory #5

Merged
merged 8 commits into from
Aug 26, 2020
Merged

destory #5

merged 8 commits into from
Aug 26, 2020

Conversation

asaadam
Copy link
Owner

@asaadam asaadam commented Aug 26, 2020

destory instance

@asaadam-bot
Copy link

Ran Plan for dir: aws workspace: default

No changes. Infrastructure is up-to-date.

This means that Terraform did not detect any differences between your
configuration and real physical resources that exist. As a result, no
actions need to be performed.
  • ▶️ To apply this plan, comment:
    • atlantis apply -d aws
  • 🚮 To delete this plan click here
  • 🔁 To plan this project again, comment:
    • atlantis plan -d aws

  • ⏩ To apply all unapplied plans from this pull request, comment:
    • atlantis apply
  • 🚮 To delete all plans and locks for the PR, comment:
    • atlantis unlock

@asaadam
Copy link
Owner Author

asaadam commented Aug 26, 2020

atlantis apply

@asaadam-bot
Copy link

Ran Apply for dir: aws workspace: default

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

@asaadam-bot
Copy link

Ran Plan for dir: aws workspace: default

Plan Error

Show Output
running "/usr/local/bin/terraform plan -input=false -refresh -no-color -out \"/home/atlantis/.atlantis/repos/asaadam/learn-iac/5/default/aws/default.tfplan\"" in "/home/atlantis/.atlantis/repos/asaadam/learn-iac/5/default/aws": exit status 1

Error: Error locking state: Error acquiring the state lock: 2 errors occurred:
	* ValidationException: One or more parameter values were invalid: Missing the key demo in the item
	status code: 400, request id: JKLOMJUVI775F6MNDRS9LHGPOBVV4KQNSO5AEMVJF66Q9ASUAAJG
	* ValidationException: The provided key element does not match the schema
	status code: 400, request id: QTESTTANHC3OOA964KQH1RU5SFVV4KQNSO5AEMVJF66Q9ASUAAJG



Terraform acquires a state lock to protect the state from being written
by multiple users at the same time. Please resolve the issue above and try
again. For most commands, you can disable locking with the "-lock=false"
flag, but this is not recommended.



@asaadam
Copy link
Owner Author

asaadam commented Aug 26, 2020

atlantis plan

@asaadam-bot
Copy link

Ran Plan for dir: aws workspace: default

Plan Error

Show Output
running "/usr/local/bin/terraform plan -input=false -refresh -no-color -out \"/home/atlantis/.atlantis/repos/asaadam/learn-iac/5/default/aws/default.tfplan\"" in "/home/atlantis/.atlantis/repos/asaadam/learn-iac/5/default/aws": exit status 1
Acquiring state lock. This may take a few moments...

Error: Error locking state: Error acquiring the state lock: 2 errors occurred:
	* ValidationException: One or more parameter values were invalid: Missing the key demo in the item
	status code: 400, request id: NOJIVC3THMGA7OJDI4NM1INV1RVV4KQNSO5AEMVJF66Q9ASUAAJG
	* ValidationException: The provided key element does not match the schema
	status code: 400, request id: 4R6TTDHEG7PREV9T1OFSH5OGINVV4KQNSO5AEMVJF66Q9ASUAAJG



Terraform acquires a state lock to protect the state from being written
by multiple users at the same time. Please resolve the issue above and try
again. For most commands, you can disable locking with the "-lock=false"
flag, but this is not recommended.



@asaadam-bot
Copy link

Ran Plan for dir: aws workspace: default

Plan Error

Show Output
running "/usr/local/bin/terraform plan -input=false -refresh -no-color -out \"/home/atlantis/.atlantis/repos/asaadam/learn-iac/5/default/aws/default.tfplan\"" in "/home/atlantis/.atlantis/repos/asaadam/learn-iac/5/default/aws": exit status 1

Error: Error locking state: Error acquiring the state lock: 2 errors occurred:
	* ValidationException: One or more parameter values were invalid: Missing the key demo in the item
	status code: 400, request id: HA6PRNV1DMHDPVIGTT86OBLJJ3VV4KQNSO5AEMVJF66Q9ASUAAJG
	* ValidationException: The provided key element does not match the schema
	status code: 400, request id: 00DKD3TPFOD4L28I2EC8DIC5HRVV4KQNSO5AEMVJF66Q9ASUAAJG



Terraform acquires a state lock to protect the state from being written
by multiple users at the same time. Please resolve the issue above and try
again. For most commands, you can disable locking with the "-lock=false"
flag, but this is not recommended.



@asaadam-bot
Copy link

Ran Plan for dir: aws workspace: default

Plan Error

Show Output
running "/usr/local/bin/terraform plan -input=false -refresh -no-color -out \"/home/atlantis/.atlantis/repos/asaadam/learn-iac/5/default/aws/default.tfplan\"" in "/home/atlantis/.atlantis/repos/asaadam/learn-iac/5/default/aws": exit status 1

Error: Error locking state: Error acquiring the state lock: 2 errors occurred:
	* ResourceNotFoundException: Requested resource not found
	* ResourceNotFoundException: Requested resource not found



Terraform acquires a state lock to protect the state from being written
by multiple users at the same time. Please resolve the issue above and try
again. For most commands, you can disable locking with the "-lock=false"
flag, but this is not recommended.



@asaadam-bot
Copy link

Ran Plan for dir: aws workspace: default

Show Output
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create

Terraform will perform the following actions:

  # aws_instance.example will be created
+ resource "aws_instance" "example" {
      + ami                          = "ami-09a4a9ce71ff3f20b"
      + arn                          = (known after apply)
      + associate_public_ip_address  = (known after apply)
      + availability_zone            = (known after apply)
      + cpu_core_count               = (known after apply)
      + cpu_threads_per_core         = (known after apply)
      + get_password_data            = false
      + host_id                      = (known after apply)
      + id                           = (known after apply)
      + instance_state               = (known after apply)
      + instance_type                = "t2.nano"
      + ipv6_address_count           = (known after apply)
      + ipv6_addresses               = (known after apply)
      + key_name                     = (known after apply)
      + outpost_arn                  = (known after apply)
      + password_data                = (known after apply)
      + placement_group              = (known after apply)
      + primary_network_interface_id = (known after apply)
      + private_dns                  = (known after apply)
      + private_ip                   = (known after apply)
      + public_dns                   = (known after apply)
      + public_ip                    = (known after apply)
      + secondary_private_ips        = (known after apply)
      + security_groups              = (known after apply)
      + source_dest_check            = true
      + subnet_id                    = (known after apply)
      + tenancy                      = (known after apply)
      + volume_tags                  = (known after apply)
      + vpc_security_group_ids       = (known after apply)

      + ebs_block_device {
          + delete_on_termination = (known after apply)
          + device_name           = (known after apply)
          + encrypted             = (known after apply)
          + iops                  = (known after apply)
          + kms_key_id            = (known after apply)
          + snapshot_id           = (known after apply)
          + volume_id             = (known after apply)
          + volume_size           = (known after apply)
          + volume_type           = (known after apply)
        }

      + ephemeral_block_device {
          + device_name  = (known after apply)
          + no_device    = (known after apply)
          + virtual_name = (known after apply)
        }

      + metadata_options {
          + http_endpoint               = (known after apply)
          + http_put_response_hop_limit = (known after apply)
          + http_tokens                 = (known after apply)
        }

      + network_interface {
          + delete_on_termination = (known after apply)
          + device_index          = (known after apply)
          + network_interface_id  = (known after apply)
        }

      + root_block_device {
          + delete_on_termination = (known after apply)
          + device_name           = (known after apply)
          + encrypted             = (known after apply)
          + iops                  = (known after apply)
          + kms_key_id            = (known after apply)
          + volume_id             = (known after apply)
          + volume_size           = (known after apply)
          + volume_type           = (known after apply)
        }
    }

Plan: 1 to add, 0 to change, 0 to destroy.
Releasing state lock. This may take a few moments...
  • ▶️ To apply this plan, comment:
    • atlantis apply -d aws
  • 🚮 To delete this plan click here
  • 🔁 To plan this project again, comment:
    • atlantis plan -d aws

  • ⏩ To apply all unapplied plans from this pull request, comment:
    • atlantis apply
  • 🚮 To delete all plans and locks for the PR, comment:
    • atlantis unlock

@asaadam
Copy link
Owner Author

asaadam commented Aug 26, 2020

atlantis apply

@asaadam-bot
Copy link

Ran Apply for dir: aws workspace: default

aws_instance.example: Creating...
aws_instance.example: Still creating... [10s elapsed]
aws_instance.example: Creation complete after 16s [id=i-056a2ce04fb187217]

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

@asaadam-bot
Copy link

Ran Plan for dir: aws workspace: default

No changes. Infrastructure is up-to-date.

This means that Terraform did not detect any differences between your
configuration and real physical resources that exist. As a result, no
actions need to be performed.
  • ▶️ To apply this plan, comment:
    • atlantis apply -d aws
  • 🚮 To delete this plan click here
  • 🔁 To plan this project again, comment:
    • atlantis plan -d aws

  • ⏩ To apply all unapplied plans from this pull request, comment:
    • atlantis apply
  • 🚮 To delete all plans and locks for the PR, comment:
    • atlantis unlock

@asaadam-bot
Copy link

Ran Plan for dir: aws workspace: default

Show Output
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
- destroy

Terraform will perform the following actions:

  # aws_instance.demo will be created
+ resource "aws_instance" "demo" {
      + ami                          = "ami-09a4a9ce71ff3f20b"
      + arn                          = (known after apply)
      + associate_public_ip_address  = (known after apply)
      + availability_zone            = (known after apply)
      + cpu_core_count               = (known after apply)
      + cpu_threads_per_core         = (known after apply)
      + get_password_data            = false
      + host_id                      = (known after apply)
      + id                           = (known after apply)
      + instance_state               = (known after apply)
      + instance_type                = "t2.nano"
      + ipv6_address_count           = (known after apply)
      + ipv6_addresses               = (known after apply)
      + key_name                     = (known after apply)
      + outpost_arn                  = (known after apply)
      + password_data                = (known after apply)
      + placement_group              = (known after apply)
      + primary_network_interface_id = (known after apply)
      + private_dns                  = (known after apply)
      + private_ip                   = (known after apply)
      + public_dns                   = (known after apply)
      + public_ip                    = (known after apply)
      + secondary_private_ips        = (known after apply)
      + security_groups              = (known after apply)
      + source_dest_check            = true
      + subnet_id                    = (known after apply)
      + tenancy                      = (known after apply)
      + volume_tags                  = (known after apply)
      + vpc_security_group_ids       = (known after apply)

      + ebs_block_device {
          + delete_on_termination = (known after apply)
          + device_name           = (known after apply)
          + encrypted             = (known after apply)
          + iops                  = (known after apply)
          + kms_key_id            = (known after apply)
          + snapshot_id           = (known after apply)
          + volume_id             = (known after apply)
          + volume_size           = (known after apply)
          + volume_type           = (known after apply)
        }

      + ephemeral_block_device {
          + device_name  = (known after apply)
          + no_device    = (known after apply)
          + virtual_name = (known after apply)
        }

      + metadata_options {
          + http_endpoint               = (known after apply)
          + http_put_response_hop_limit = (known after apply)
          + http_tokens                 = (known after apply)
        }

      + network_interface {
          + delete_on_termination = (known after apply)
          + device_index          = (known after apply)
          + network_interface_id  = (known after apply)
        }

      + root_block_device {
          + delete_on_termination = (known after apply)
          + device_name           = (known after apply)
          + encrypted             = (known after apply)
          + iops                  = (known after apply)
          + kms_key_id            = (known after apply)
          + volume_id             = (known after apply)
          + volume_size           = (known after apply)
          + volume_type           = (known after apply)
        }
    }

  # aws_instance.example will be destroyed
- resource "aws_instance" "example" {
      - ami                          = "ami-09a4a9ce71ff3f20b" -> null
      - arn                          = "arn:aws:ec2:ap-southeast-1:486882535571:instance/i-056a2ce04fb187217" -> null
      - associate_public_ip_address  = true -> null
      - availability_zone            = "ap-southeast-1a" -> null
      - cpu_core_count               = 1 -> null
      - cpu_threads_per_core         = 1 -> null
      - disable_api_termination      = false -> null
      - ebs_optimized                = false -> null
      - get_password_data            = false -> null
      - hibernation                  = false -> null
      - id                           = "i-056a2ce04fb187217" -> null
      - instance_state               = "running" -> null
      - instance_type                = "t2.nano" -> null
      - ipv6_address_count           = 0 -> null
      - ipv6_addresses               = [] -> null
      - monitoring                   = false -> null
      - primary_network_interface_id = "eni-0230de0f3459600d7" -> null
      - private_dns                  = "ip-172-31-22-163.ap-southeast-1.compute.internal" -> null
      - private_ip                   = "172.31.22.163" -> null
      - public_dns                   = "ec2-18-141-24-103.ap-southeast-1.compute.amazonaws.com" -> null
      - public_ip                    = "18.141.24.103" -> null
      - secondary_private_ips        = [] -> null
      - security_groups              = [
          - "default",
        ] -> null
      - source_dest_check            = true -> null
      - subnet_id                    = "subnet-52944334" -> null
      - tags                         = {} -> null
      - tenancy                      = "default" -> null
      - volume_tags                  = {} -> null
      - vpc_security_group_ids       = [
          - "sg-445fdd30",
        ] -> null

      - credit_specification {
          - cpu_credits = "standard" -> null
        }

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

      - root_block_device {
          - delete_on_termination = true -> null
          - device_name           = "/dev/sda1" -> null
          - encrypted             = false -> null
          - iops                  = 100 -> null
          - volume_id             = "vol-0221870068357a371" -> null
          - volume_size           = 8 -> null
          - volume_type           = "gp2" -> null
        }
    }

Plan: 1 to add, 0 to change, 1 to destroy.
Releasing state lock. This may take a few moments...
  • ▶️ To apply this plan, comment:
    • atlantis apply -d aws
  • 🚮 To delete this plan click here
  • 🔁 To plan this project again, comment:
    • atlantis plan -d aws

  • ⏩ To apply all unapplied plans from this pull request, comment:
    • atlantis apply
  • 🚮 To delete all plans and locks for the PR, comment:
    • atlantis unlock

@asaadam
Copy link
Owner Author

asaadam commented Aug 26, 2020

atlantis apply

@asaadam-bot
Copy link

Ran Apply for dir: aws workspace: default

aws_instance.example: Destroying... [id=i-056a2ce04fb187217]
aws_instance.demo: Creating...
aws_instance.example: Still destroying... [id=i-056a2ce04fb187217, 10s elapsed]
aws_instance.demo: Still creating... [10s elapsed]
aws_instance.example: Still destroying... [id=i-056a2ce04fb187217, 20s elapsed]
aws_instance.demo: Still creating... [20s elapsed]
aws_instance.example: Still destroying... [id=i-056a2ce04fb187217, 30s elapsed]
aws_instance.demo: Still creating... [30s elapsed]
aws_instance.example: Destruction complete after 30s
aws_instance.demo: Creation complete after 33s [id=i-0a529383f5d1ff8a3]

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

@asaadam-bot
Copy link

Ran Plan for dir: aws workspace: default

Show Output
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
- destroy

Terraform will perform the following actions:

  # aws_instance.demo will be destroyed
- resource "aws_instance" "demo" {
      - ami                          = "ami-09a4a9ce71ff3f20b" -> null
      - arn                          = "arn:aws:ec2:ap-southeast-1:486882535571:instance/i-0a529383f5d1ff8a3" -> null
      - associate_public_ip_address  = true -> null
      - availability_zone            = "ap-southeast-1c" -> null
      - cpu_core_count               = 1 -> null
      - cpu_threads_per_core         = 1 -> null
      - disable_api_termination      = false -> null
      - ebs_optimized                = false -> null
      - get_password_data            = false -> null
      - hibernation                  = false -> null
      - id                           = "i-0a529383f5d1ff8a3" -> null
      - instance_state               = "running" -> null
      - instance_type                = "t2.nano" -> null
      - ipv6_address_count           = 0 -> null
      - ipv6_addresses               = [] -> null
      - monitoring                   = false -> null
      - primary_network_interface_id = "eni-0150ca72aba970e4d" -> null
      - private_dns                  = "ip-172-31-9-68.ap-southeast-1.compute.internal" -> null
      - private_ip                   = "172.31.9.68" -> null
      - public_dns                   = "ec2-3-0-206-217.ap-southeast-1.compute.amazonaws.com" -> null
      - public_ip                    = "3.0.206.217" -> null
      - secondary_private_ips        = [] -> null
      - security_groups              = [
          - "default",
        ] -> null
      - source_dest_check            = true -> null
      - subnet_id                    = "subnet-d22ba88b" -> null
      - tags                         = {} -> null
      - tenancy                      = "default" -> null
      - volume_tags                  = {} -> null
      - vpc_security_group_ids       = [
          - "sg-445fdd30",
        ] -> null

      - credit_specification {
          - cpu_credits = "standard" -> null
        }

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

      - root_block_device {
          - delete_on_termination = true -> null
          - device_name           = "/dev/sda1" -> null
          - encrypted             = false -> null
          - iops                  = 100 -> null
          - volume_id             = "vol-0227d7bf565c5bf02" -> null
          - volume_size           = 8 -> null
          - volume_type           = "gp2" -> null
        }
    }

Plan: 0 to add, 0 to change, 1 to destroy.
  • ▶️ To apply this plan, comment:
    • atlantis apply -d aws
  • 🚮 To delete this plan click here
  • 🔁 To plan this project again, comment:
    • atlantis plan -d aws

  • ⏩ To apply all unapplied plans from this pull request, comment:
    • atlantis apply
  • 🚮 To delete all plans and locks for the PR, comment:
    • atlantis unlock

@asaadam
Copy link
Owner Author

asaadam commented Aug 26, 2020

atlantis apply

@asaadam-bot
Copy link

Ran Apply for dir: aws workspace: default

aws_instance.demo: Destroying... [id=i-0a529383f5d1ff8a3]
aws_instance.demo: Still destroying... [id=i-0a529383f5d1ff8a3, 10s elapsed]
aws_instance.demo: Still destroying... [id=i-0a529383f5d1ff8a3, 20s elapsed]
aws_instance.demo: Still destroying... [id=i-0a529383f5d1ff8a3, 30s elapsed]
aws_instance.demo: Destruction complete after 30s

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

@asaadam asaadam merged commit 100b90f into master Aug 26, 2020
@asaadam-bot
Copy link

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

  • dir: aws workspace: default

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.

2 participants