Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ⋊> ~/P/O/D/g/a/terraform on terraform-1 ⨯ terraform destroy 11:46:18
- google_compute_http_health_check.ruby_http_port: Refreshing state... (ID: ruby-http-port)
- google_compute_firewall.firewall_puma: Refreshing state... (ID: allow-puma-default)
- google_compute_instance.app[1]: Refreshing state... (ID: reddit-app-1)
- google_compute_instance.app[0]: Refreshing state... (ID: reddit-app-0)
- google_compute_target_pool.ruby_cluster: Refreshing state... (ID: ruby-cluster)
- 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:
- - google_compute_firewall.firewall_puma
- - google_compute_http_health_check.ruby_http_port
- - google_compute_instance.app[0]
- - google_compute_instance.app[1]
- - google_compute_target_pool.ruby_cluster
- Plan: 0 to add, 0 to change, 5 to destroy.
- Do you really want to destroy all resources?
- Terraform will destroy all your managed infrastructure, as shown above.
- There is no undo. Only 'yes' will be accepted to confirm.
- Enter a value: yes
- google_compute_firewall.firewall_puma: Destroying... (ID: allow-puma-default)
- google_compute_target_pool.ruby_cluster: Destroying... (ID: ruby-cluster)
- google_compute_firewall.firewall_puma: Still destroying... (ID: allow-puma-default, 10s elapsed)
- google_compute_target_pool.ruby_cluster: Still destroying... (ID: ruby-cluster, 10s elapsed)
- google_compute_firewall.firewall_puma: Destruction complete after 11s
- google_compute_target_pool.ruby_cluster: Destruction complete after 12s
- google_compute_http_health_check.ruby_http_port: Destroying... (ID: ruby-http-port)
- google_compute_instance.app[0]: Destroying... (ID: reddit-app-0)
- google_compute_instance.app[1]: Destroying... (ID: reddit-app-1)
- google_compute_instance.app.1: Still destroying... (ID: reddit-app-1, 10s elapsed)
- google_compute_http_health_check.ruby_http_port: Still destroying... (ID: ruby-http-port, 10s elapsed)
- google_compute_instance.app.0: Still destroying... (ID: reddit-app-0, 10s elapsed)
- google_compute_http_health_check.ruby_http_port: Destruction complete after 11s
- google_compute_instance.app.0: Still destroying... (ID: reddit-app-0, 20s elapsed)
- google_compute_instance.app.1: Still destroying... (ID: reddit-app-1, 20s elapsed)
- google_compute_instance.app[1]: Destruction complete after 26s
- google_compute_instance.app.0: Still destroying... (ID: reddit-app-0, 30s elapsed)
- google_compute_instance.app.0: Still destroying... (ID: reddit-app-0, 40s elapsed)
- google_compute_instance.app.0: Still destroying... (ID: reddit-app-0, 50s elapsed)
- google_compute_instance.app.0: Still destroying... (ID: reddit-app-0, 1m0s elapsed)
- google_compute_instance.app.0: Still destroying... (ID: reddit-app-0, 1m10s elapsed)
- google_compute_instance.app.0: Still destroying... (ID: reddit-app-0, 1m20s elapsed)
- google_compute_instance.app.0: Still destroying... (ID: reddit-app-0, 1m30s elapsed)
- google_compute_instance.app.0: Still destroying... (ID: reddit-app-0, 1m40s elapsed)
- google_compute_instance.app.0: Still destroying... (ID: reddit-app-0, 1m50s elapsed)
- google_compute_instance.app[0]: Destruction complete after 1m50s
- Destroy complete! Resources: 5 destroyed.
- ⋊> ~/P/O/D/g/a/terraform on terraform-1 ⨯ terraform plan 11:49:14
- Refreshing Terraform state in-memory prior to plan...
- The refreshed state will be used to calculate this plan, but will not be
- persisted to local or remote state storage.
- ------------------------------------------------------------------------
- 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:
- + google_compute_firewall.firewall_puma
- id: <computed>
- allow.#: "1"
- allow.931060522.ports.#: "1"
- allow.931060522.ports.0: "9292"
- allow.931060522.protocol: "tcp"
- destination_ranges.#: <computed>
- name: "allow-puma-default"
- network: "default"
- priority: "1000"
- project: <computed>
- self_link: <computed>
- source_ranges.#: "1"
- source_ranges.1080289494: "0.0.0.0/0"
- target_tags.#: "1"
- target_tags.1799682348: "reddit-app"
- + google_compute_global_forwarding_rule.ruby-forwarding
- id: <computed>
- ip_address: <computed>
- ip_protocol: <computed>
- label_fingerprint: <computed>
- name: "ruby-forwarding"
- port_range: "9292"
- project: <computed>
- self_link: <computed>
- target: "${google_compute_target_pool.ruby_cluster.self_link}"
- + google_compute_http_health_check.ruby_http_port
- id: <computed>
- check_interval_sec: "3"
- healthy_threshold: "2"
- name: "ruby-http-port"
- port: "9292"
- project: <computed>
- request_path: "/"
- self_link: <computed>
- timeout_sec: "1"
- unhealthy_threshold: "2"
- + google_compute_instance.app[0]
- id: <computed>
- boot_disk.#: "1"
- boot_disk.0.auto_delete: "true"
- boot_disk.0.device_name: <computed>
- boot_disk.0.disk_encryption_key_sha256: <computed>
- boot_disk.0.initialize_params.#: "1"
- boot_disk.0.initialize_params.0.image: "reddit-base"
- can_ip_forward: "false"
- cpu_platform: <computed>
- create_timeout: "4"
- instance_id: <computed>
- label_fingerprint: <computed>
- machine_type: "g1-small"
- metadata.%: "1"
- metadata.ssh-keys: "appuser:ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5uy2SzmovqakU6p9B05hzjv/+rd+TLETg1U1gQLVqAqdQQ8zcio7sViIo3aslDYXbX9R3S4sGrDtOpSKoY08SCjbHldXcsdru/HsmitZM/FDSnZoUbQA1EgZIobP93pIy202w0MR36cA6RjbHIDpwwlfSZazCAA90KngR6SLWKXiscxO4Wn7RgIo5gKWwRLryU20l+60dZlyozuZzizGXmk/vPMGK+6nG1DWrubgxTJbiTkg+Lvt3wGlHFSzJG1W3RDrpSVHMcif6WhyJWk1f8Q0DCs33m6o3h+KfWJwVNRpRMWuPISWS8JAmqWjLeYic/y9VV41Stfd3hSzWI2N9 appuser\n"
- metadata_fingerprint: <computed>
- name: "reddit-app-0"
- network_interface.#: "1"
- network_interface.0.access_config.#: "1"
- network_interface.0.access_config.0.assigned_nat_ip: <computed>
- network_interface.0.access_config.0.nat_ip: <computed>
- network_interface.0.address: <computed>
- network_interface.0.name: <computed>
- network_interface.0.network: "default"
- network_interface.0.network_ip: <computed>
- network_interface.0.subnetwork_project: <computed>
- project: <computed>
- scheduling.#: <computed>
- self_link: <computed>
- tags.#: "1"
- tags.1799682348: "reddit-app"
- tags_fingerprint: <computed>
- zone: "europe-west1-b"
- + google_compute_instance.app[1]
- id: <computed>
- boot_disk.#: "1"
- boot_disk.0.auto_delete: "true"
- boot_disk.0.device_name: <computed>
- boot_disk.0.disk_encryption_key_sha256: <computed>
- boot_disk.0.initialize_params.#: "1"
- boot_disk.0.initialize_params.0.image: "reddit-base"
- can_ip_forward: "false"
- cpu_platform: <computed>
- create_timeout: "4"
- instance_id: <computed>
- label_fingerprint: <computed>
- machine_type: "g1-small"
- metadata.%: "1"
- metadata.ssh-keys: "appuser:ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5uy2SzmovqakU6p9B05hzjv/+rd+TLETg1U1gQLVqAqdQQ8zcio7sViIo3aslDYXbX9R3S4sGrDtOpSKoY08SCjbHldXcsdru/HsmitZM/FDSnZoUbQA1EgZIobP93pIy202w0MR36cA6RjbHIDpwwlfSZazCAA90KngR6SLWKXiscxO4Wn7RgIo5gKWwRLryU20l+60dZlyozuZzizGXmk/vPMGK+6nG1DWrubgxTJbiTkg+Lvt3wGlHFSzJG1W3RDrpSVHMcif6WhyJWk1f8Q0DCs33m6o3h+KfWJwVNRpRMWuPISWS8JAmqWjLeYic/y9VV41Stfd3hSzWI2N9 appuser\n"
- metadata_fingerprint: <computed>
- name: "reddit-app-1"
- network_interface.#: "1"
- network_interface.0.access_config.#: "1"
- network_interface.0.access_config.0.assigned_nat_ip: <computed>
- network_interface.0.access_config.0.nat_ip: <computed>
- network_interface.0.address: <computed>
- network_interface.0.name: <computed>
- network_interface.0.network: "default"
- network_interface.0.network_ip: <computed>
- network_interface.0.subnetwork_project: <computed>
- project: <computed>
- scheduling.#: <computed>
- self_link: <computed>
- tags.#: "1"
- tags.1799682348: "reddit-app"
- tags_fingerprint: <computed>
- zone: "europe-west2-b"
- + google_compute_target_pool.ruby_cluster
- id: <computed>
- health_checks.#: <computed>
- instances.#: <computed>
- name: "ruby-cluster"
- project: <computed>
- region: <computed>
- self_link: <computed>
- session_affinity: "NONE"
- Plan: 6 to add, 0 to change, 0 to destroy.
- ------------------------------------------------------------------------
- Note: You didn't specify an "-out" parameter to save this plan, so Terraform
- can't guarantee that exactly these actions will be performed if
- "terraform apply" is subsequently run.
- ⋊> ~/P/O/D/g/a/terraform on terraform-1 ⨯ terraform apply --auto-approve=true 11:51:12
- google_compute_http_health_check.ruby_http_port: Creating...
- check_interval_sec: "" => "3"
- healthy_threshold: "" => "2"
- name: "" => "ruby-http-port"
- port: "" => "9292"
- project: "" => "<computed>"
- request_path: "" => "/"
- self_link: "" => "<computed>"
- timeout_sec: "" => "1"
- unhealthy_threshold: "" => "2"
- google_compute_firewall.firewall_puma: Creating...
- allow.#: "" => "1"
- allow.931060522.ports.#: "" => "1"
- allow.931060522.ports.0: "" => "9292"
- allow.931060522.protocol: "" => "tcp"
- destination_ranges.#: "" => "<computed>"
- name: "" => "allow-puma-default"
- network: "" => "default"
- priority: "" => "1000"
- project: "" => "<computed>"
- self_link: "" => "<computed>"
- source_ranges.#: "" => "1"
- source_ranges.1080289494: "" => "0.0.0.0/0"
- target_tags.#: "" => "1"
- target_tags.1799682348: "" => "reddit-app"
- google_compute_instance.app[0]: Creating...
- boot_disk.#: "" => "1"
- boot_disk.0.auto_delete: "" => "true"
- boot_disk.0.device_name: "" => "<computed>"
- boot_disk.0.disk_encryption_key_sha256: "" => "<computed>"
- boot_disk.0.initialize_params.#: "" => "1"
- boot_disk.0.initialize_params.0.image: "" => "reddit-base"
- can_ip_forward: "" => "false"
- cpu_platform: "" => "<computed>"
- create_timeout: "" => "4"
- instance_id: "" => "<computed>"
- label_fingerprint: "" => "<computed>"
- machine_type: "" => "g1-small"
- metadata.%: "" => "1"
- metadata.ssh-keys: "" => "appuser:ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5uy2SzmovqakU6p9B05hzjv/+rd+TLETg1U1gQLVqAqdQQ8zcio7sViIo3aslDYXbX9R3S4sGrDtOpSKoY08SCjbHldXcsdru/HsmitZM/FDSnZoUbQA1EgZIobP93pIy202w0MR36cA6RjbHIDpwwlfSZazCAA90KngR6SLWKXiscxO4Wn7RgIo5gKWwRLryU20l+60dZlyozuZzizGXmk/vPMGK+6nG1DWrubgxTJbiTkg+Lvt3wGlHFSzJG1W3RDrpSVHMcif6WhyJWk1f8Q0DCs33m6o3h+KfWJwVNRpRMWuPISWS8JAmqWjLeYic/y9VV41Stfd3hSzWI2N9 appuser\n"
- metadata_fingerprint: "" => "<computed>"
- name: "" => "reddit-app-0"
- network_interface.#: "" => "1"
- network_interface.0.access_config.#: "" => "1"
- network_interface.0.access_config.0.assigned_nat_ip: "" => "<computed>"
- network_interface.0.access_config.0.nat_ip: "" => "<computed>"
- network_interface.0.address: "" => "<computed>"
- network_interface.0.name: "" => "<computed>"
- network_interface.0.network: "" => "default"
- network_interface.0.network_ip: "" => "<computed>"
- network_interface.0.subnetwork_project: "" => "<computed>"
- project: "" => "<computed>"
- scheduling.#: "" => "<computed>"
- self_link: "" => "<computed>"
- tags.#: "" => "1"
- tags.1799682348: "" => "reddit-app"
- tags_fingerprint: "" => "<computed>"
- zone: "" => "europe-west1-b"
- google_compute_instance.app[1]: Creating...
- boot_disk.#: "" => "1"
- boot_disk.0.auto_delete: "" => "true"
- boot_disk.0.device_name: "" => "<computed>"
- boot_disk.0.disk_encryption_key_sha256: "" => "<computed>"
- boot_disk.0.initialize_params.#: "" => "1"
- boot_disk.0.initialize_params.0.image: "" => "reddit-base"
- can_ip_forward: "" => "false"
- cpu_platform: "" => "<computed>"
- create_timeout: "" => "4"
- instance_id: "" => "<computed>"
- label_fingerprint: "" => "<computed>"
- machine_type: "" => "g1-small"
- metadata.%: "" => "1"
- metadata.ssh-keys: "" => "appuser:ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5uy2SzmovqakU6p9B05hzjv/+rd+TLETg1U1gQLVqAqdQQ8zcio7sViIo3aslDYXbX9R3S4sGrDtOpSKoY08SCjbHldXcsdru/HsmitZM/FDSnZoUbQA1EgZIobP93pIy202w0MR36cA6RjbHIDpwwlfSZazCAA90KngR6SLWKXiscxO4Wn7RgIo5gKWwRLryU20l+60dZlyozuZzizGXmk/vPMGK+6nG1DWrubgxTJbiTkg+Lvt3wGlHFSzJG1W3RDrpSVHMcif6WhyJWk1f8Q0DCs33m6o3h+KfWJwVNRpRMWuPISWS8JAmqWjLeYic/y9VV41Stfd3hSzWI2N9 appuser\n"
- metadata_fingerprint: "" => "<computed>"
- name: "" => "reddit-app-1"
- network_interface.#: "" => "1"
- network_interface.0.access_config.#: "" => "1"
- network_interface.0.access_config.0.assigned_nat_ip: "" => "<computed>"
- network_interface.0.access_config.0.nat_ip: "" => "<computed>"
- network_interface.0.address: "" => "<computed>"
- network_interface.0.name: "" => "<computed>"
- network_interface.0.network: "" => "default"
- network_interface.0.network_ip: "" => "<computed>"
- network_interface.0.subnetwork_project: "" => "<computed>"
- project: "" => "<computed>"
- scheduling.#: "" => "<computed>"
- self_link: "" => "<computed>"
- tags.#: "" => "1"
- tags.1799682348: "" => "reddit-app"
- tags_fingerprint: "" => "<computed>"
- zone: "" => "europe-west2-b"
- google_compute_http_health_check.ruby_http_port: Still creating... (10s elapsed)
- google_compute_firewall.firewall_puma: Still creating... (10s elapsed)
- google_compute_instance.app.1: Still creating... (10s elapsed)
- google_compute_instance.app.0: Still creating... (10s elapsed)
- google_compute_http_health_check.ruby_http_port: Creation complete after 13s (ID: ruby-http-port)
- google_compute_firewall.firewall_puma: Creation complete after 13s (ID: allow-puma-default)
- google_compute_instance.app[1]: Provisioning with 'file'...
- google_compute_instance.app.0: Still creating... (20s elapsed)
- google_compute_instance.app.1: Still creating... (20s elapsed)
- google_compute_instance.app.1: Still creating... (30s elapsed)
- google_compute_instance.app.0: Still creating... (30s elapsed)
- google_compute_instance.app[0]: Provisioning with 'file'...
- google_compute_instance.app[1]: Provisioning with 'remote-exec'...
- google_compute_instance.app[1] (remote-exec): Connecting to remote host via SSH...
- google_compute_instance.app[1] (remote-exec): Host: 35.189.123.0
- google_compute_instance.app[1] (remote-exec): User: appuser
- google_compute_instance.app[1] (remote-exec): Password: false
- google_compute_instance.app[1] (remote-exec): Private key: true
- google_compute_instance.app[1] (remote-exec): SSH Agent: false
- google_compute_instance.app[1] (remote-exec): Checking Host Key: false
- google_compute_instance.app[1] (remote-exec): Connected!
- google_compute_instance.app.0: Still creating... (40s elapsed)
- google_compute_instance.app.1: Still creating... (40s elapsed)
- google_compute_instance.app[1] (remote-exec): Cloning into '/home/appuser/reddit''remote-exec'...
- google_compute_instance.app[0] (remote-exec): Connecting to remote host via SSH...
- google_compute_instance.app[0] (remote-exec): Host: 35.241.194.159
- google_compute_instance.app[0] (remote-exec): User: appuser
- google_compute_instance.app[0] (remote-exec): Password: false
- google_compute_instance.app[0] (remote-exec): Private key: true
- google_compute_instance.app[0] (remote-exec): SSH Agent: false
- google_compute_instance.app[0] (remote-exec): Checking Host Key: false
- google_compute_instance.app[0] (remote-exec): Connected!
- google_compute_instance.app[0] (remote-exec): Cloning into '/home/appuser/reddit'#: "" => "1"
- health_checks.0: "" => "https://www.googleapis.com/compute/v1/projects/aidjek-infrastructure/global/httpHealthChecks/ruby-http-port"
- instances.#: "" => "1"
- instances.0: "" => "https://www.googleapis.com/compute/v1/projects/aidjek-infrastructure/zones/europe-west1-b/instances/reddit-app-0"
- name: "" => "ruby-cluster"
- project: "" => "<computed>"
- region: "" => "<computed>"
- self_link: "" => "<computed>"
- session_affinity: "" => "NONE"
- google_compute_target_pool.ruby_cluster: Still creating... (10s elapsed)
- google_compute_target_pool.ruby_cluster: Creation complete after 12s (ID: ruby-cluster)
- google_compute_global_forwarding_rule.ruby-forwarding: Creating...
- ip_address: "" => "<computed>"
- ip_protocol: "" => "<computed>"
- label_fingerprint: "" => "<computed>"
- name: "" => "ruby-forwarding"
- port_range: "" => "9292"
- project: "" => "<computed>"
- self_link: "" => "<computed>"
- target: "" => "https://www.googleapis.com/compute/v1/projects/aidjek-infrastructure/regions/europe-west1/targetPools/ruby-cluster"
- Error: Error applying plan:
- 1 error(s) occurred:
- * google_compute_global_forwarding_rule.ruby-forwarding: 1 error(s) occurred:
- * google_compute_global_forwarding_rule.ruby-forwarding: Error creating Global Forwarding Rule: googleapi: Error 400: Invalid value for field 'resource.target': 'https://www.googleapis.com/compute/v1/projects/aidjek-infrastructure/regions/europe-west1/targetPools/ruby-cluster'. Invalid target type TARGET_POOL for forwarding rule in scope GLOBAL, invalid
- Terraform does not automatically rollback in the face of errors.
- Instead, your Terraform state file has been partially updated with
- any resources that successfully completed. Please address the error
- above and apply again to incrementally change your infrastructure.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement