GoogleCloudPlatform / terraform-google-managed-instance-group

Modular Google Compute Engine managed instance group for Terraform.
Apache License 2.0
63 stars 138 forks source link

Error: Unsupported argument #45

Closed iamjenechka closed 5 years ago

iamjenechka commented 5 years ago

terraform apply -auto-approve -target=module.lbroup-fd61bad/mai

Error: Incorrect attribute value type

on .terraform/modules/mig/GoogleCloudPlatform-terraform-google-managed-instance-group-fd61bad/main.tf line 26, in resource "google_compute_instance_template" "default": 26: tags = ["${concat(list("allow-ssh"), var.target_tags)}"]

Inappropriate value for attribute "tags": element 0: string required.

Error: Unsupported argument

on .terraform/modules/mig/GoogleCloudPlatform-terraform-google-managed-instance-group-fd61bad/main.tf line 33, in resource "google_compute_instance_template" "default": 33: access_config = ["${var.access_config}"]

An argument named "access_config" is not expected here. Did you mean to define a block of type "access_config"?

Error: Incorrect attribute value type

on .terraform/modules/mig/GoogleCloudPlatform-terraform-google-managed-instance-group-fd61bad/main.tf line 52, in resource "google_compute_instance_template" "default": 52: scopes = ["${var.service_account_scopes}"]

Inappropriate value for attribute "scopes": element 0: string required.

morgante commented 5 years ago

Can you share your Terraform config?

iamjenechka commented 5 years ago

sure, I'll try asap.

iamjenechka commented 5 years ago

https://github.com/jimisan/terraform, @morgante. here you are!

morgante commented 5 years ago

@jimisan This module is no longer maintained, so I'd suggest you switch to https://github.com/terraform-google-modules/terraform-google-vm/tree/master/modules/mig.

iamjenechka commented 5 years ago

thank you.