skip to Main Content

Unable to run metadata_startup_script in Terraform – CentOS

I have a terraform script resource "google_compute_attached_disk" "default3" { disk = google_compute_disk.default2.id instance = google_compute_instance.default.id } resource "google_compute_instance" "default" { name = "test" machine_type = "custom-8-16384" zone = "asia-south1-a" tags = ["foo", "bar"] boot_disk { initialize_params { image = "centos-cloud/centos-7"…

VIEW QUESTION

Redis – Cannot destroy one module using Terraform destroy

I have created a few instances using Terraform module: resource "google_compute_instance" "cluster" { count = var.num_instances name = "redis-${format("%03d", count.index)}" ... attached_disk { source = google_compute_disk.ssd[count.index].name } } resource "google_compute_disk" "ssd" { count = var.num_instances name = "redis-ssd-${format("%03d", count.index)}" ...…

VIEW QUESTION
Back To Top
Search