Skip to content

Instantly share code, notes, and snippets.

@RuBiCK
Created November 22, 2018 12:10
Show Gist options
  • Save RuBiCK/ca8ceaf17cbbc0b82e6d89e2befeff44 to your computer and use it in GitHub Desktop.
Save RuBiCK/ca8ceaf17cbbc0b82e6d89e2befeff44 to your computer and use it in GitHub Desktop.
$ terraform apply 2> debug.log
aws_vpc.main: Refreshing state... (ID: vpc-0132d7e985655ec9a)
aws_internet_gateway.gw: Refreshing state... (ID: igw-0e29787f000389029)
aws_security_group.allow_all: Refreshing state... (ID: sg-05aaaf7737c2e1a91)
aws_subnet.subnet[2]: Refreshing state... (ID: subnet-0c7b42560b2208992)
aws_subnet.subnet[0]: Refreshing state... (ID: subnet-048db1dd9f602891f)
aws_subnet.subnet[1]: Refreshing state... (ID: subnet-025a215a783648507)
aws_subnet.subnet[3]: Refreshing state... (ID: subnet-0b8bee3f1d5b755ec)
aws_eip.nat: Refreshing state... (ID: eipalloc-0057d480fa70e0749)
aws_route_table.public-route: Refreshing state... (ID: rtb-044e7ab173eb7dd2e)
aws_network_acl.allow_all: Refreshing state... (ID: acl-094281a9d8589875d)
aws_route_table_association.public-rt: Refreshing state... (ID: rtbassoc-00fa56a88a4080a05)
aws_nat_gateway.gwa: Refreshing state... (ID: nat-01c5fa9680df5359b)
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
~ update in-place
-/+ destroy and then create replacement
<= read (data resources)
Terraform will perform the following actions:
<= data.aws_subnet_ids.private
id: <computed>
ids.#: <computed>
tags.%: "1"
tags.public: "0"
vpc_id: "vpc-0132d7e985655ec9a"
<= data.aws_subnet_ids.public
id: <computed>
ids.#: <computed>
tags.%: "1"
tags.public: "1"
vpc_id: "vpc-0132d7e985655ec9a"
<= data.aws_subnet_ids.subnetnat
id: <computed>
ids.#: <computed>
tags.%: "1"
tags.nat: "1"
vpc_id: "vpc-0132d7e985655ec9a"
-/+ aws_nat_gateway.gwa (new resource required)
id: "nat-01c5fa9680df5359b" => <computed> (forces new resource)
allocation_id: "eipalloc-0057d480fa70e0749" => "eipalloc-0057d480fa70e0749"
network_interface_id: "eni-0ce5f6f6e96335ffb" => <computed>
private_ip: "10.240.0.225" => <computed>
public_ip: "63.33.29.4" => <computed>
subnet_id: "subnet-0b8bee3f1d5b755ec" => "${data.aws_subnet_ids.subnetnat.ids[0]}" (forces new resource)
~ aws_network_acl.allow_all
subnet_ids.#: "" => <computed>
-/+ aws_route_table_association.public-rt (new resource required)
id: "rtbassoc-00fa56a88a4080a05" => <computed> (forces new resource)
route_table_id: "rtb-044e7ab173eb7dd2e" => "rtb-044e7ab173eb7dd2e"
subnet_id: "subnet-0b8bee3f1d5b755ec" => "${data.aws_subnet_ids.public.ids[count.index]}" (forces new resource)
Plan: 2 to add, 1 to change, 2 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
aws_route_table_association.public-rt: Destroying... (ID: rtbassoc-00fa56a88a4080a05)
aws_nat_gateway.gwa: Destroying... (ID: nat-01c5fa9680df5359b)
data.aws_subnet_ids.public: Refreshing state...
data.aws_subnet_ids.subnetnat: Refreshing state...
data.aws_subnet_ids.private: Refreshing state...
aws_route_table_association.public-rt: Destruction complete after 6s
aws_route_table_association.public-rt: Creating...
route_table_id: "" => "rtb-044e7ab173eb7dd2e"
subnet_id: "" => "subnet-0b8bee3f1d5b755ec"
aws_nat_gateway.gwa: Still destroying... (ID: nat-01c5fa9680df5359b, 10s elapsed)
aws_route_table_association.public-rt: Creation complete after 5s (ID: rtbassoc-03e0dbad4543d6ff4)
aws_nat_gateway.gwa: Still destroying... (ID: nat-01c5fa9680df5359b, 20s elapsed)
aws_nat_gateway.gwa: Still destroying... (ID: nat-01c5fa9680df5359b, 30s elapsed)
aws_nat_gateway.gwa: Still destroying... (ID: nat-01c5fa9680df5359b, 40s elapsed)
aws_nat_gateway.gwa: Still destroying... (ID: nat-01c5fa9680df5359b, 50s elapsed)
aws_nat_gateway.gwa: Still destroying... (ID: nat-01c5fa9680df5359b, 1m0s elapsed)
aws_nat_gateway.gwa: Destruction complete after 1m7s
aws_nat_gateway.gwa: Creating...
allocation_id: "" => "eipalloc-0057d480fa70e0749"
network_interface_id: "" => "<computed>"
private_ip: "" => "<computed>"
public_ip: "" => "<computed>"
subnet_id: "" => "subnet-0b8bee3f1d5b755ec"
aws_nat_gateway.gwa: Still creating... (10s elapsed)
aws_nat_gateway.gwa: Still creating... (20s elapsed)
aws_nat_gateway.gwa: Still creating... (30s elapsed)
aws_nat_gateway.gwa: Still creating... (40s elapsed)
aws_nat_gateway.gwa: Still creating... (50s elapsed)
aws_nat_gateway.gwa: Still creating... (1m0s elapsed)
aws_nat_gateway.gwa: Still creating... (1m10s elapsed)
aws_nat_gateway.gwa: Still creating... (1m20s elapsed)
aws_nat_gateway.gwa: Still creating... (1m30s elapsed)
aws_nat_gateway.gwa: Still creating... (1m40s elapsed)
aws_nat_gateway.gwa: Creation complete after 1m45s (ID: nat-0714763ddcfbdfbef)
Apply complete! Resources: 2 added, 0 changed, 2 destroyed.
Outputs:
subnets_information = [
subnet-048db1dd9f602891f, 10.240.0.0/26, eu-west-1a,
subnet-025a215a783648507, 10.240.0.64/26, eu-west-1a,
subnet-0c7b42560b2208992, 10.240.0.128/26, eu-west-1b,
subnet-0b8bee3f1d5b755ec, 10.240.0.192/26, eu-west-1a
]
vpcid = VPC ID vpc-0132d7e985655ec9a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment