Skip to content

Instantly share code, notes, and snippets.

@Mierdin
Created June 6, 2019 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mierdin/f590c74c1498974d2783dd8602d23979 to your computer and use it in GitHub Desktop.
Save Mierdin/f590c74c1498974d2783dd8602d23979 to your computer and use it in GitHub Desktop.
terraform apply
random_id.id: Refreshing state... [id=7Rnb0Q]
google_compute_health_check.k8sapi: Refreshing state... [id=k8sapi]
google_compute_health_check.observerhealth-influxdb: Refreshing state... [id=observerhealth-influxdb]
google_compute_global_address.nrefrontend: Refreshing state... [id=nrefrontend]
google_compute_health_check.httphealth: Refreshing state... [id=httphealth]
google_compute_health_check.httpshealth: Refreshing state... [id=httpshealth]
google_compute_disk.grafana_disk: Refreshing state... [id=grafana-disk]
google_project_iam_binding.ansible-bind: Refreshing state... [id=antidote-216521/roles/compute.viewer]
google_compute_health_check.observerhealth-grafana: Refreshing state... [id=observerhealth-grafana]
google_compute_health_check.k8sapi-ha: Refreshing state... [id=k8sapi-ha]
google_storage_bucket.maintenance-page: Refreshing state... [id=maintenance-page]
google_compute_disk.centos7_disk: Refreshing state... [id=centos7-disk]
google_service_account.ansiblesa: Refreshing state... [id=projects/antidote-216521/serviceAccounts/ansiblesa@antidote-216521.iam.gserviceaccount.com]
google_compute_disk.influxdb_disk: Refreshing state... [id=influxdb-disk]
google_compute_network.default-internal: Refreshing state... [id=default-internal]
google_storage_bucket_object.index: Refreshing state... [id=maintenance-page-index.html]
google_compute_backend_bucket.maintenance: Refreshing state... [id=maintenance]
google_dns_record_set.grafana: Refreshing state... [id=nre/grafana.networkreliability.engineering./A]
google_dns_record_set.bypassmaint: Refreshing state... [id=nre/maintbypass.labs.networkreliability.engineering./A]
google_dns_record_set.labs: Refreshing state... [id=nre/labs.networkreliability.engineering./A]
google_dns_record_set.influxdb: Refreshing state... [id=nre/influxdb.networkreliability.engineering./A]
google_dns_record_set.ptr: Refreshing state... [id=nre/ptr.labs.networkreliability.engineering./A]
google_compute_image.nested-vm-image: Refreshing state... [id=nested-vm-image]
google_storage_object_acl.maintenance-acl: Refreshing state... [id=index.html-acl]
google_compute_firewall.allow-st2: Refreshing state... [id=allow-st2]
google_compute_instance.observer: Refreshing state... [id=observer]
google_compute_firewall.restrict-external: Refreshing state... [id=restrict-external]
google_compute_instance_template.controllers-ha: Refreshing state... [id=controllers-ha]
google_compute_instance.abathur: Refreshing state... [id=abathur]
google_compute_firewall.allow-gcp-lb: Refreshing state... [id=allow-gcp-lb]
google_compute_firewall.allow-internal-antidote: Refreshing state... [id=allow-internal-antidote]
google_compute_instance_template.workers: Refreshing state... [id=workers]
google_compute_instance_template.controllers: Refreshing state... [id=controllers]
google_compute_instance_from_template.controllers-ha-1: Refreshing state... [id=controllers-ha-1]
google_compute_instance_from_template.controllers-ha-0: Refreshing state... [id=controllers-ha-0]
google_compute_instance_from_template.controllers-ha-2: Refreshing state... [id=controllers-ha-2]
google_service_account_key.ansible-key: Refreshing state... [id=projects/antidote-216521/serviceAccounts/ansiblesa@antidote-216521.iam.gserviceaccount.com/keys/c66a5fc8e990e9dea0f829cf73525e2353ac52eb]
google_compute_region_instance_group_manager.workers: Refreshing state... [id=workers]
google_compute_instance_group.observer: Refreshing state... [id=us-west1-a/observer]
google_dns_record_set.abathur: Refreshing state... [id=nre/abathur.networkreliability.engineering./A]
google_compute_region_instance_group_manager.controllers: Refreshing state... [id=controllers]
local_file.ansible-key-file: Refreshing state... [id=e32f04a526bb3b31074785b5e29390ba187ba0b0]
google_compute_instance_group.controller-ha-group-0: Refreshing state... [id=us-west1-a/controller-ha-group-0]
google_compute_instance_group.controller-ha-group-1: Refreshing state... [id=us-west1-b/controller-ha-group-1]
data.google_compute_region_instance_group.workers: Refreshing state...
google_compute_region_autoscaler.workers-scaler: Refreshing state... [id=us-west1/workers-scaler]
google_compute_instance_group.controller-ha-group-2: Refreshing state... [id=us-west1-c/controller-ha-group-2]
data.google_compute_instance_group.observer: Refreshing state...
data.google_compute_region_instance_group.controllers: Refreshing state...
google_compute_region_autoscaler.controllers-scaler: Refreshing state... [id=us-west1/controllers-scaler]
data.google_compute_instance_group.controller-ha-group-0: Refreshing state...
google_compute_backend_service.observer-grafana: Refreshing state... [id=observer-grafana]
google_compute_backend_service.observer-influxdb: Refreshing state... [id=observer-influxdb]
data.google_compute_instance_group.controller-ha-group-1: Refreshing state...
data.google_compute_instance_group.controller-ha-group-2: Refreshing state...
google_compute_backend_service.httpsbackend: Refreshing state... [id=httpsbackend]
google_compute_backend_service.httpbackend: Refreshing state... [id=httpbackend]
google_compute_region_backend_service.k8sapi-ha: Refreshing state... [id=k8sapi-ha]
google_compute_region_backend_service.k8sapi: Refreshing state... [id=k8sapi]
google_compute_url_map.http-url-map: Refreshing state... [id=http-url-map]
google_compute_url_map.https-url-map: Refreshing state... [id=https-url-map]
google_compute_forwarding_rule.k8s-ha: Refreshing state... [id=k8sapi-forwarding-rule-ha]
google_compute_forwarding_rule.k8sapi: Refreshing state... [id=k8sapi-forwarding-rule]
google_compute_target_https_proxy.nrehttpsproxy: Refreshing state... [id=nrehttpsproxy]
google_compute_target_http_proxy.nrehttpproxy: Refreshing state... [id=nrehttpproxy]
google_compute_global_forwarding_rule.nrehttp: Refreshing state... [id=nrehttp]
google_compute_global_forwarding_rule.nrehttps: Refreshing state... [id=nrehttps]
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:
# packet_device.lily will be created
+ resource "packet_device" "lily" {
+ access_private_ipv4 = (known after apply)
+ access_public_ipv4 = (known after apply)
+ access_public_ipv6 = (known after apply)
+ always_pxe = false
+ billing_cycle = "hourly"
+ created = (known after apply)
+ deployed_facility = (known after apply)
+ facilities = [
+ "sjc1",
]
+ hardware_reservation_id = (known after apply)
+ hostname = "lily"
+ id = (known after apply)
+ locked = (known after apply)
+ network = (known after apply)
+ operating_system = "centos_7"
+ plan = "t1.small.x86"
+ ports = (known after apply)
+ project_id = "082a7c93-e9fc-4a26-9e33-d2b6b6a449f1"
+ public_ipv4_subnet_size = (known after apply)
+ root_password = (sensitive value)
+ ssh_key_ids = (known after apply)
+ state = (known after apply)
+ updated = (known after apply)
}
# packet_ssh_key.mierdinkey will be created
+ resource "packet_ssh_key" "mierdinkey" {
+ created = (known after apply)
+ fingerprint = (known after apply)
+ id = (known after apply)
+ name = "mierdinkey"
+ public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXEboButmNIbC604/SVHgnUy5N/jHjERVMkmXFzwnsQLGpvRdb2qzl0vEX6uisrWZgf02VgmYEJzuWwi/QF/hW+uD2nFuae5HilOiOV1fh+gbZ5QTqQ7VK23J0wssNRCTWiK0U3c39H5PZKGFgd+y/dpATCeUFMA8F5C8FYZYS8SKwVFkcvmAcUp4iTtUbFRn1qdIkwXxXtnBck2JEyx7iqczAL77itIkPE/wv+jDbindpxDUidhYFQDHT0enCmGs+FxKHqCNYD5VHSoDr4YYpIK9ZODv4HKdmiQ7z3oHiG7NjPENMTu0Ju8isuww21Naf/jz5yq7QArIZhkUWt6OF mierdin@archimedes"
+ updated = (known after apply)
}
Plan: 2 to add, 0 to change, 0 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
packet_ssh_key.mierdinkey: Creating...
Error: Not found
on packet.tf line 44, in resource "packet_ssh_key" "mierdinkey":
44: resource "packet_ssh_key" "mierdinkey" {
SECOND APPLY BELOW
terraform apply
random_id.id: Refreshing state... [id=7Rnb0Q]
google_project_iam_binding.ansible-bind: Refreshing state... [id=antidote-216521/roles/compute.viewer]
google_compute_health_check.k8sapi: Refreshing state... [id=k8sapi]
google_compute_health_check.k8sapi-ha: Refreshing state... [id=k8sapi-ha]
google_compute_global_address.nrefrontend: Refreshing state... [id=nrefrontend]
google_service_account.ansiblesa: Refreshing state... [id=projects/antidote-216521/serviceAccounts/ansiblesa@antidote-216521.iam.gserviceaccount.com]
google_compute_network.default-internal: Refreshing state... [id=default-internal]
google_storage_bucket.maintenance-page: Refreshing state... [id=maintenance-page]
google_compute_health_check.httphealth: Refreshing state... [id=httphealth]
google_compute_health_check.observerhealth-influxdb: Refreshing state... [id=observerhealth-influxdb]
google_compute_disk.grafana_disk: Refreshing state... [id=grafana-disk]
google_compute_health_check.observerhealth-grafana: Refreshing state... [id=observerhealth-grafana]
google_compute_disk.influxdb_disk: Refreshing state... [id=influxdb-disk]
google_compute_health_check.httpshealth: Refreshing state... [id=httpshealth]
google_compute_disk.centos7_disk: Refreshing state... [id=centos7-disk]
google_compute_backend_bucket.maintenance: Refreshing state... [id=maintenance]
google_storage_bucket_object.index: Refreshing state... [id=maintenance-page-index.html]
google_compute_firewall.allow-gcp-lb: Refreshing state... [id=allow-gcp-lb]
google_compute_instance.abathur: Refreshing state... [id=abathur]
google_compute_instance.observer: Refreshing state... [id=observer]
google_compute_firewall.allow-internal-antidote: Refreshing state... [id=allow-internal-antidote]
google_compute_firewall.allow-st2: Refreshing state... [id=allow-st2]
google_compute_firewall.restrict-external: Refreshing state... [id=restrict-external]
google_compute_instance_template.controllers-ha: Refreshing state... [id=controllers-ha]
google_dns_record_set.ptr: Refreshing state... [id=nre/ptr.labs.networkreliability.engineering./A]
google_dns_record_set.influxdb: Refreshing state... [id=nre/influxdb.networkreliability.engineering./A]
google_dns_record_set.grafana: Refreshing state... [id=nre/grafana.networkreliability.engineering./A]
google_dns_record_set.bypassmaint: Refreshing state... [id=nre/maintbypass.labs.networkreliability.engineering./A]
google_dns_record_set.labs: Refreshing state... [id=nre/labs.networkreliability.engineering./A]
google_storage_object_acl.maintenance-acl: Refreshing state... [id=index.html-acl]
google_compute_image.nested-vm-image: Refreshing state... [id=nested-vm-image]
google_service_account_key.ansible-key: Refreshing state... [id=projects/antidote-216521/serviceAccounts/ansiblesa@antidote-216521.iam.gserviceaccount.com/keys/c66a5fc8e990e9dea0f829cf73525e2353ac52eb]
google_compute_instance_group.observer: Refreshing state... [id=us-west1-a/observer]
google_dns_record_set.abathur: Refreshing state... [id=nre/abathur.networkreliability.engineering./A]
google_compute_instance_from_template.controllers-ha-2: Refreshing state... [id=controllers-ha-2]
google_compute_instance_from_template.controllers-ha-1: Refreshing state... [id=controllers-ha-1]
google_compute_instance_from_template.controllers-ha-0: Refreshing state... [id=controllers-ha-0]
google_compute_instance_template.controllers: Refreshing state... [id=controllers]
google_compute_instance_template.workers: Refreshing state... [id=workers]
data.google_compute_instance_group.observer: Refreshing state...
google_compute_instance_group.controller-ha-group-0: Refreshing state... [id=us-west1-a/controller-ha-group-0]
google_compute_region_instance_group_manager.workers: Refreshing state... [id=workers]
google_compute_region_instance_group_manager.controllers: Refreshing state... [id=controllers]
local_file.ansible-key-file: Refreshing state... [id=e32f04a526bb3b31074785b5e29390ba187ba0b0]
google_compute_instance_group.controller-ha-group-1: Refreshing state... [id=us-west1-b/controller-ha-group-1]
google_compute_instance_group.controller-ha-group-2: Refreshing state... [id=us-west1-c/controller-ha-group-2]
data.google_compute_instance_group.controller-ha-group-0: Refreshing state...
data.google_compute_region_instance_group.workers: Refreshing state...
google_compute_region_autoscaler.workers-scaler: Refreshing state... [id=us-west1/workers-scaler]
google_compute_backend_service.observer-influxdb: Refreshing state... [id=observer-influxdb]
google_compute_backend_service.observer-grafana: Refreshing state... [id=observer-grafana]
data.google_compute_region_instance_group.controllers: Refreshing state...
google_compute_region_autoscaler.controllers-scaler: Refreshing state... [id=us-west1/controllers-scaler]
data.google_compute_instance_group.controller-ha-group-1: Refreshing state...
data.google_compute_instance_group.controller-ha-group-2: Refreshing state...
google_compute_region_backend_service.k8sapi-ha: Refreshing state... [id=k8sapi-ha]
google_compute_forwarding_rule.k8s-ha: Refreshing state... [id=k8sapi-forwarding-rule-ha]
google_compute_backend_service.httpsbackend: Refreshing state... [id=httpsbackend]
google_compute_backend_service.httpbackend: Refreshing state... [id=httpbackend]
google_compute_region_backend_service.k8sapi: Refreshing state... [id=k8sapi]
google_compute_url_map.http-url-map: Refreshing state... [id=http-url-map]
google_compute_forwarding_rule.k8sapi: Refreshing state... [id=k8sapi-forwarding-rule]
google_compute_url_map.https-url-map: Refreshing state... [id=https-url-map]
google_compute_target_http_proxy.nrehttpproxy: Refreshing state... [id=nrehttpproxy]
google_compute_target_https_proxy.nrehttpsproxy: Refreshing state... [id=nrehttpsproxy]
google_compute_global_forwarding_rule.nrehttp: Refreshing state... [id=nrehttp]
google_compute_global_forwarding_rule.nrehttps: Refreshing state... [id=nrehttps]
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:
# packet_device.lily will be created
+ resource "packet_device" "lily" {
+ access_private_ipv4 = (known after apply)
+ access_public_ipv4 = (known after apply)
+ access_public_ipv6 = (known after apply)
+ always_pxe = false
+ billing_cycle = "hourly"
+ created = (known after apply)
+ deployed_facility = (known after apply)
+ facilities = [
+ "sjc1",
]
+ hardware_reservation_id = (known after apply)
+ hostname = "lily"
+ id = (known after apply)
+ locked = (known after apply)
+ network = (known after apply)
+ operating_system = "centos_7"
+ plan = "t1.small.x86"
+ ports = (known after apply)
+ project_id = "082a7c93-e9fc-4a26-9e33-d2b6b6a449f1"
+ public_ipv4_subnet_size = (known after apply)
+ root_password = (sensitive value)
+ ssh_key_ids = (known after apply)
+ state = (known after apply)
+ updated = (known after apply)
}
# packet_ssh_key.mierdinkey will be created
+ resource "packet_ssh_key" "mierdinkey" {
+ created = (known after apply)
+ fingerprint = (known after apply)
+ id = (known after apply)
+ name = "mierdinkey"
+ public_key = "<key content omitted>"
+ updated = (known after apply)
}
Plan: 2 to add, 0 to change, 0 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
packet_ssh_key.mierdinkey: Creating...
Error: Key already exists
on packet.tf line 44, in resource "packet_ssh_key" "mierdinkey":
44: resource "packet_ssh_key" "mierdinkey" {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment