Adding a new instance (also serving as a Digger test)#8
Closed
spider-man-tm wants to merge 2 commits intomainfrom
Closed
Adding a new instance (also serving as a Digger test)#8spider-man-tm wants to merge 2 commits intomainfrom
spider-man-tm wants to merge 2 commits intomainfrom
Conversation
Digger run report at 2025-05-29 13:07:30 (UTC)Plan outputTerraform will perform the following actions:
# module.gce.google_compute_instance.competition_instance[1] will be created
+ resource "google_compute_instance" "competition_instance" {
+ can_ip_forward = false
+ cpu_platform = (known after apply)
+ current_status = (known after apply)
+ deletion_protection = false
+ effective_labels = (known after apply)
+ guest_accelerator = (known after apply)
+ id = (known after apply)
+ instance_id = (known after apply)
+ label_fingerprint = (known after apply)
+ machine_type = "e2-micro"
+ metadata_fingerprint = (known after apply)
+ metadata_startup_script = (sensitive value)
+ min_cpu_platform = (known after apply)
+ name = "instance-kaggle-demo"
+ project = "kaggle-infra-exp-0808"
+ self_link = (known after apply)
+ tags_fingerprint = (known after apply)
+ terraform_labels = (known after apply)
+ zone = "asia-northeast1-c"
+ boot_disk {
+ auto_delete = true
+ device_name = (known after apply)
+ disk_encryption_key_sha256 = (known after apply)
+ kms_key_self_link = (known after apply)
+ mode = "READ_WRITE"
+ source = (known after apply)
+ initialize_params {
+ image = "ubuntu-os-cloud/ubuntu-2004-lts"
+ labels = (known after apply)
+ provisioned_iops = (known after apply)
+ provisioned_throughput = (known after apply)
+ size = (known after apply)
+ type = (known after apply)
}
}
+ confidential_instance_config (known after apply)
+ network_interface {
+ internal_ipv6_prefix_length = (known after apply)
+ ipv6_access_type = (known after apply)
+ ipv6_address = (known after apply)
+ name = (known after apply)
+ network = "default"
+ network_ip = (known after apply)
+ stack_type = (known after apply)
+ subnetwork = (known after apply)
+ subnetwork_project = (known after apply)
+ access_config {
+ nat_ip = (known after apply)
+ network_tier = (known after apply)
}
}
+ reservation_affinity (known after apply)
+ scheduling (known after apply)
+ service_account {
+ email = "instance-service-account@kaggle-infra-exp-0808.iam.gserviceaccount.com"
+ scopes = [
+ "https://www.googleapis.com/auth/cloud-platform",
]
}
}
# module.network.google_compute_address.static_ip[1] will be created
+ resource "google_compute_address" "static_ip" {
+ address = (known after apply)
+ address_type = "EXTERNAL"
+ creation_timestamp = (known after apply)
+ effective_labels = (known after apply)
+ id = (known after apply)
+ label_fingerprint = (known after apply)
+ name = "static-ip-kaggle-demo"
+ network_tier = "PREMIUM"
+ prefix_length = (known after apply)
+ project = "kaggle-infra-exp-0808"
+ purpose = (known after apply)
+ region = "asia-northeast1"
+ self_link = (known after apply)
+ subnetwork = (known after apply)
+ terraform_labels = (known after apply)
+ users = (known after apply)
}
Plan: 2 to add, 0 to change, 0 to destroy.
─────────────────────────────────────────────────────────────────────────────Terraform plan validation check (competition01)Terraform plan validation checks succeeded ✅Plan summary
|
Owner
Author
|
As expected, the plan result shows that a second instance has been added. |
Owner
Author
|
digger apply |
Digger run report at 2025-05-29 13:09:13 (UTC)Apply outputError: Error creating Address: googleapi: Error 409: The resource 'projects/kaggle-infra-exp-0808/regions/asia-northeast1/addresses/static-ip-kaggle-demo' already exists, alreadyExists
with module.network.google_compute_address.static_ip[1],
on ../../modules/network/main.tf line 2, in resource "google_compute_address" "static_ip":
2: resource "google_compute_address" "static_ip" {
Error during applying.exit status 1 |
Owner
Author
|
It seems the plan succeeded, but the apply phase failed, so I’m making corrections. |
Digger run report at 2025-05-29 13:18:08 (UTC)Plan outputTerraform will perform the following actions:
# module.gce.google_compute_instance.competition_instance[0] must be replaced
-/+ resource "google_compute_instance" "competition_instance" {
~ cpu_platform = "Unknown CPU Platform" -> (known after apply)
~ current_status = "TERMINATED" -> (known after apply)
~ effective_labels = {} -> (known after apply)
- enable_display = false -> null
~ guest_accelerator = [] -> (known after apply)
~ id = "projects/kaggle-infra-exp-0808/zones/asia-northeast1-c/instances/instance-kaggle-demo" -> (known after apply)
~ instance_id = "2441737989430828679" -> (known after apply)
~ label_fingerprint = "42WmSpB8rSM=" -> (known after apply)
- labels = {} -> null
- metadata = {} -> null
~ metadata_fingerprint = "IsZpHED5i-I=" -> (known after apply)
+ min_cpu_platform = (known after apply)
~ name = "instance-kaggle-demo" -> "instance-kaggle-demo-0" # forces replacement
- resource_policies = [] -> null
~ self_link = "https://www.googleapis.com/compute/v1/projects/kaggle-infra-exp-0808/zones/asia-northeast1-c/instances/instance-kaggle-demo" -> (known after apply)
- tags = [] -> null
~ tags_fingerprint = "42WmSpB8rSM=" -> (known after apply)
~ terraform_labels = {} -> (known after apply)
# (8 unchanged attributes hidden)
~ boot_disk {
~ device_name = "persistent-disk-0" -> (known after apply)
+ disk_encryption_key_sha256 = (known after apply)
+ kms_key_self_link = (known after apply)
~ source = "https://www.googleapis.com/compute/v1/projects/kaggle-infra-exp-0808/zones/asia-northeast1-c/disks/instance-kaggle-demo" -> (known after apply)
# (3 unchanged attributes hidden)
~ initialize_params {
- enable_confidential_compute = false -> null
~ image = "https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/ubuntu-2004-focal-v20250508a" -> "ubuntu-os-cloud/ubuntu-2004-lts"
~ labels = {} -> (known after apply)
~ provisioned_iops = 0 -> (known after apply)
~ provisioned_throughput = 0 -> (known after apply)
- resource_manager_tags = {} -> null
~ size = 10 -> (known after apply)
~ type = "pd-standard" -> (known after apply)
# (1 unchanged attribute hidden)
}
}
~ confidential_instance_config (known after apply)
~ network_interface {
~ internal_ipv6_prefix_length = 0 -> (known after apply)
+ ipv6_access_type = (known after apply)
+ ipv6_address = (known after apply)
~ name = "nic0" -> (known after apply)
~ network = "https://www.googleapis.com/compute/v1/projects/kaggle-infra-exp-0808/global/networks/default" -> "default"
~ network_ip = "10.146.0.4" -> (known after apply)
- queue_count = 0 -> null
~ stack_type = "IPV4_ONLY" -> (known after apply)
~ subnetwork = "https://www.googleapis.com/compute/v1/projects/kaggle-infra-exp-0808/regions/asia-northeast1/subnetworks/default" -> (known after apply)
~ subnetwork_project = "kaggle-infra-exp-0808" -> (known after apply)
# (1 unchanged attribute hidden)
~ access_config {
~ nat_ip = "35.243.102.89" -> (known after apply)
~ network_tier = "PREMIUM" -> (known after apply)
# (1 unchanged attribute hidden)
}
}
~ reservation_affinity (known after apply)
~ scheduling (known after apply)
- scheduling {
- automatic_restart = true -> null
- min_node_cpus = 0 -> null
- on_host_maintenance = "MIGRATE" -> null
- preemptible = false -> null
- provisioning_model = "STANDARD" -> null
# (1 unchanged attribute hidden)
}
- shielded_instance_config {
- enable_integrity_monitoring = true -> null
- enable_secure_boot = false -> null
- enable_vtpm = true -> null
}
# (1 unchanged block hidden)
}
# module.gce.google_compute_instance.competition_instance[1] will be created
+ resource "google_compute_instance" "competition_instance" {
+ can_ip_forward = false
+ cpu_platform = (known after apply)
+ current_status = (known after apply)
+ deletion_protection = false
+ effective_labels = (known after apply)
+ guest_accelerator = (known after apply)
+ id = (known after apply)
+ instance_id = (known after apply)
+ label_fingerprint = (known after apply)
+ machine_type = "e2-micro"
+ metadata_fingerprint = (known after apply)
+ metadata_startup_script = (sensitive value)
+ min_cpu_platform = (known after apply)
+ name = "instance-kaggle-demo-1"
+ project = "kaggle-infra-exp-0808"
+ self_link = (known after apply)
+ tags_fingerprint = (known after apply)
+ terraform_labels = (known after apply)
+ zone = "asia-northeast1-c"
+ boot_disk {
+ auto_delete = true
+ device_name = (known after apply)
+ disk_encryption_key_sha256 = (known after apply)
+ kms_key_self_link = (known after apply)
+ mode = "READ_WRITE"
+ source = (known after apply)
+ initialize_params {
+ image = "ubuntu-os-cloud/ubuntu-2004-lts"
+ labels = (known after apply)
+ provisioned_iops = (known after apply)
+ provisioned_throughput = (known after apply)
+ size = (known after apply)
+ type = (known after apply)
}
}
+ confidential_instance_config (known after apply)
+ network_interface {
+ internal_ipv6_prefix_length = (known after apply)
+ ipv6_access_type = (known after apply)
+ ipv6_address = (known after apply)
+ name = (known after apply)
+ network = "default"
+ network_ip = (known after apply)
+ stack_type = (known after apply)
+ subnetwork = (known after apply)
+ subnetwork_project = (known after apply)
+ access_config {
+ nat_ip = (known after apply)
+ network_tier = (known after apply)
}
}
+ reservation_affinity (known after apply)
+ scheduling (known after apply)
+ service_account {
+ email = "instance-service-account@kaggle-infra-exp-0808.iam.gserviceaccount.com"
+ scopes = [
+ "https://www.googleapis.com/auth/cloud-platform",
]
}
}
# module.network.google_compute_address.static_ip[0] must be replaced
-/+ resource "google_compute_address" "static_ip" {
~ address = "35.243.102.89" -> (known after apply)
~ creation_timestamp = "2025-05-26T05:36:42.688-07:00" -> (known after apply)
~ effective_labels = {} -> (known after apply)
~ id = "projects/kaggle-infra-exp-0808/regions/asia-northeast1/addresses/static-ip-kaggle-demo" -> (known after apply)
~ label_fingerprint = "42WmSpB8rSM=" -> (known after apply)
- labels = {} -> null
~ name = "static-ip-kaggle-demo" -> "static-ip-kaggle-demo-0" # forces replacement
~ prefix_length = 0 -> (known after apply)
+ purpose = (known after apply)
~ self_link = "https://www.googleapis.com/compute/v1/projects/kaggle-infra-exp-0808/regions/asia-northeast1/addresses/static-ip-kaggle-demo" -> (known after apply)
+ subnetwork = (known after apply)
~ terraform_labels = {} -> (known after apply)
~ users = [
- "https://www.googleapis.com/compute/v1/projects/kaggle-infra-exp-0808/zones/asia-northeast1-c/instances/instance-kaggle-demo",
] -> (known after apply)
# (8 unchanged attributes hidden)
}
# module.network.google_compute_address.static_ip[1] will be created
+ resource "google_compute_address" "static_ip" {
+ address = (known after apply)
+ address_type = "EXTERNAL"
+ creation_timestamp = (known after apply)
+ effective_labels = (known after apply)
+ id = (known after apply)
+ label_fingerprint = (known after apply)
+ name = "static-ip-kaggle-demo-1"
+ network_tier = "PREMIUM"
+ prefix_length = (known after apply)
+ project = "kaggle-infra-exp-0808"
+ purpose = (known after apply)
+ region = "asia-northeast1"
+ self_link = (known after apply)
+ subnetwork = (known after apply)
+ terraform_labels = (known after apply)
+ users = (known after apply)
}
Plan: 4 to add, 0 to change, 2 to destroy.
─────────────────────────────────────────────────────────────────────────────Terraform plan validation check (competition01)Terraform plan validation checks succeeded ✅Plan summary
|
Owner
Author
|
digger apply |
Digger run report at 2025-05-29 13:19:51 (UTC)Apply outputTerraform will perform the following actions:
# module.gce.google_compute_instance.competition_instance[0] must be replaced
-/+ resource "google_compute_instance" "competition_instance" {
~ cpu_platform = "Unknown CPU Platform" -> (known after apply)
~ current_status = "TERMINATED" -> (known after apply)
~ effective_labels = {} -> (known after apply)
- enable_display = false -> null
~ guest_accelerator = [] -> (known after apply)
~ id = "projects/kaggle-infra-exp-0808/zones/asia-northeast1-c/instances/instance-kaggle-demo" -> (known after apply)
~ instance_id = "2441737989430828679" -> (known after apply)
~ label_fingerprint = "42WmSpB8rSM=" -> (known after apply)
- labels = {} -> null
- metadata = {} -> null
~ metadata_fingerprint = "IsZpHED5i-I=" -> (known after apply)
+ min_cpu_platform = (known after apply)
~ name = "instance-kaggle-demo" -> "instance-kaggle-demo-0" # forces replacement
- resource_policies = [] -> null
~ self_link = "https://www.googleapis.com/compute/v1/projects/kaggle-infra-exp-0808/zones/asia-northeast1-c/instances/instance-kaggle-demo" -> (known after apply)
- tags = [] -> null
~ tags_fingerprint = "42WmSpB8rSM=" -> (known after apply)
~ terraform_labels = {} -> (known after apply)
# (8 unchanged attributes hidden)
~ boot_disk {
~ device_name = "persistent-disk-0" -> (known after apply)
+ disk_encryption_key_sha256 = (known after apply)
+ kms_key_self_link = (known after apply)
~ source = "https://www.googleapis.com/compute/v1/projects/kaggle-infra-exp-0808/zones/asia-northeast1-c/disks/instance-kaggle-demo" -> (known after apply)
# (3 unchanged attributes hidden)
~ initialize_params {
- enable_confidential_compute = false -> null
~ image = "https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/ubuntu-2004-focal-v20250508a" -> "ubuntu-os-cloud/ubuntu-2004-lts"
~ labels = {} -> (known after apply)
~ provisioned_iops = 0 -> (known after apply)
~ provisioned_throughput = 0 -> (known after apply)
- resource_manager_tags = {} -> null
~ size = 10 -> (known after apply)
~ type = "pd-standard" -> (known after apply)
# (1 unchanged attribute hidden)
}
}
~ confidential_instance_config (known after apply)
~ network_interface {
~ internal_ipv6_prefix_length = 0 -> (known after apply)
+ ipv6_access_type = (known after apply)
+ ipv6_address = (known after apply)
~ name = "nic0" -> (known after apply)
~ network = "https://www.googleapis.com/compute/v1/projects/kaggle-infra-exp-0808/global/networks/default" -> "default"
~ network_ip = "10.146.0.4" -> (known after apply)
- queue_count = 0 -> null
~ stack_type = "IPV4_ONLY" -> (known after apply)
~ subnetwork = "https://www.googleapis.com/compute/v1/projects/kaggle-infra-exp-0808/regions/asia-northeast1/subnetworks/default" -> (known after apply)
~ subnetwork_project = "kaggle-infra-exp-0808" -> (known after apply)
# (1 unchanged attribute hidden)
~ access_config {
~ nat_ip = "35.243.102.89" -> (known after apply)
~ network_tier = "PREMIUM" -> (known after apply)
# (1 unchanged attribute hidden)
}
}
~ reservation_affinity (known after apply)
~ scheduling (known after apply)
- scheduling {
- automatic_restart = true -> null
- min_node_cpus = 0 -> null
- on_host_maintenance = "MIGRATE" -> null
- preemptible = false -> null
- provisioning_model = "STANDARD" -> null
# (1 unchanged attribute hidden)
}
- shielded_instance_config {
- enable_integrity_monitoring = true -> null
- enable_secure_boot = false -> null
- enable_vtpm = true -> null
}
# (1 unchanged block hidden)
}
# module.gce.google_compute_instance.competition_instance[1] will be created
+ resource "google_compute_instance" "competition_instance" {
+ can_ip_forward = false
+ cpu_platform = (known after apply)
+ current_status = (known after apply)
+ deletion_protection = false
+ effective_labels = (known after apply)
+ guest_accelerator = (known after apply)
+ id = (known after apply)
+ instance_id = (known after apply)
+ label_fingerprint = (known after apply)
+ machine_type = "e2-micro"
+ metadata_fingerprint = (known after apply)
+ metadata_startup_script = (sensitive value)
+ min_cpu_platform = (known after apply)
+ name = "instance-kaggle-demo-1"
+ project = "kaggle-infra-exp-0808"
+ self_link = (known after apply)
+ tags_fingerprint = (known after apply)
+ terraform_labels = (known after apply)
+ zone = "asia-northeast1-c"
+ boot_disk {
+ auto_delete = true
+ device_name = (known after apply)
+ disk_encryption_key_sha256 = (known after apply)
+ kms_key_self_link = (known after apply)
+ mode = "READ_WRITE"
+ source = (known after apply)
+ initialize_params {
+ image = "ubuntu-os-cloud/ubuntu-2004-lts"
+ labels = (known after apply)
+ provisioned_iops = (known after apply)
+ provisioned_throughput = (known after apply)
+ size = (known after apply)
+ type = (known after apply)
}
}
+ confidential_instance_config (known after apply)
+ network_interface {
+ internal_ipv6_prefix_length = (known after apply)
+ ipv6_access_type = (known after apply)
+ ipv6_address = (known after apply)
+ name = (known after apply)
+ network = "default"
+ network_ip = (known after apply)
+ stack_type = (known after apply)
+ subnetwork = (known after apply)
+ subnetwork_project = (known after apply)
+ access_config {
+ nat_ip = (known after apply)
+ network_tier = (known after apply)
}
}
+ reservation_affinity (known after apply)
+ scheduling (known after apply)
+ service_account {
+ email = "instance-service-account@kaggle-infra-exp-0808.iam.gserviceaccount.com"
+ scopes = [
+ "https://www.googleapis.com/auth/cloud-platform",
]
}
}
# module.network.google_compute_address.static_ip[0] must be replaced
-/+ resource "google_compute_address" "static_ip" {
~ address = "35.243.102.89" -> (known after apply)
~ creation_timestamp = "2025-05-26T05:36:42.688-07:00" -> (known after apply)
~ effective_labels = {} -> (known after apply)
~ id = "projects/kaggle-infra-exp-0808/regions/asia-northeast1/addresses/static-ip-kaggle-demo" -> (known after apply)
~ label_fingerprint = "42WmSpB8rSM=" -> (known after apply)
- labels = {} -> null
~ name = "static-ip-kaggle-demo" -> "static-ip-kaggle-demo-0" # forces replacement
~ prefix_length = 0 -> (known after apply)
+ purpose = (known after apply)
~ self_link = "https://www.googleapis.com/compute/v1/projects/kaggle-infra-exp-0808/regions/asia-northeast1/addresses/static-ip-kaggle-demo" -> (known after apply)
+ subnetwork = (known after apply)
~ terraform_labels = {} -> (known after apply)
~ users = [
- "https://www.googleapis.com/compute/v1/projects/kaggle-infra-exp-0808/zones/asia-northeast1-c/instances/instance-kaggle-demo",
] -> (known after apply)
# (8 unchanged attributes hidden)
}
# module.network.google_compute_address.static_ip[1] will be created
+ resource "google_compute_address" "static_ip" {
+ address = (known after apply)
+ address_type = "EXTERNAL"
+ creation_timestamp = (known after apply)
+ effective_labels = (known after apply)
+ id = (known after apply)
+ label_fingerprint = (known after apply)
+ name = "static-ip-kaggle-demo-1"
+ network_tier = "PREMIUM"
+ prefix_length = (known after apply)
+ project = "kaggle-infra-exp-0808"
+ purpose = (known after apply)
+ region = "asia-northeast1"
+ self_link = (known after apply)
+ subnetwork = (known after apply)
+ terraform_labels = (known after apply)
+ users = (known after apply)
}
Plan: 4 to add, 0 to change, 2 to destroy.
module.gce.google_compute_instance.competition_instance[0]: Destroying... [id=projects/kaggle-infra-exp-0808/zones/asia-northeast1-c/instances/instance-kaggle-demo]
module.gce.google_compute_instance.competition_instance[0]: Still destroying... [id=projects/kaggle-infra-exp-0808/zones/as...east1-c/instances/instance-kaggle-demo, 00m10s elapsed]
module.gce.google_compute_instance.competition_instance[0]: Destruction complete after 12s
module.network.google_compute_address.static_ip[0]: Destroying... [id=projects/kaggle-infra-exp-0808/regions/asia-northeast1/addresses/static-ip-kaggle-demo]
module.network.google_compute_address.static_ip[1]: Creating...
module.network.google_compute_address.static_ip[0]: Destruction complete after 2s
module.network.google_compute_address.static_ip[0]: Creating...
module.network.google_compute_address.static_ip[0]: Creation complete after 2s [id=projects/kaggle-infra-exp-0808/regions/asia-northeast1/addresses/static-ip-kaggle-demo-0]
module.network.google_compute_address.static_ip[1]: Still creating... [00m10s elapsed]
module.network.google_compute_address.static_ip[1]: Creation complete after 11s [id=projects/kaggle-infra-exp-0808/regions/asia-northeast1/addresses/static-ip-kaggle-demo-1]
module.gce.google_compute_instance.competition_instance[1]: Creating...
module.gce.google_compute_instance.competition_instance[0]: Creating...
module.gce.google_compute_instance.competition_instance[0]: Still creating... [00m10s elapsed]
module.gce.google_compute_instance.competition_instance[1]: Still creating... [00m10s elapsed]
module.gce.google_compute_instance.competition_instance[0]: Creation complete after 15s [id=projects/kaggle-infra-exp-0808/zones/asia-northeast1-c/instances/instance-kaggle-demo-0]
module.gce.google_compute_instance.competition_instance[1]: Creation complete after 16s [id=projects/kaggle-infra-exp-0808/zones/asia-northeast1-c/instances/instance-kaggle-demo-1]
Releasing state lock. This may take a few moments...
Apply complete! Resources: 4 added, 0 changed, 2 destroyed.
Apply outputError: No configuration files
Apply requires configuration to be present. Applying without a configuration
would mark everything for destruction, which is normally not what is desired.
If you would like to destroy everything, run 'terraform destroy' instead.
Error during applying.exit status 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.