Open mastercactapus opened 4 years ago
Can you share the value you've specified? A self_link
looks like https://www.googleapis.com/compute/beta/projects/my-project/zones/us-central1-f/instanceGroups/my-ig
while the "foo"
string provided would be a name
. In my example, that would be my-ig
.
Originally I was using instance_group_urls
from a google_container_node_pool
when I first got the error:
Sorry, the notification for this response got eaten and I missed your update. Are you still encountering the issue?
I'm surprised by the format being returned, I haven't seen that one before. Is there anything unusual about your environment you can think of?
I'm encountering this today. The datasource read delegates to the resource read, and the resource read always validates the zone.
Oh, it seems by the time the resource read validates it that it should have been set…
The instance_group_urls
of a google_container_node_pool
appear to be the URLs for instance group managers not instance groups: https://github.com/terraform-providers/terraform-provider-google/blob/1b413bc/google/resource_container_node_pool.go#L491
Bump! This issue still exists!
Sorry, managed to lose track of the issue again. I won't be able to get to it- unassigning so someone else on the team can pick it up.
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Data-source should be loaded when using a valid
self_link
.Actual Behavior
An error saying a zone is required is returned.
Specifying zone, whilst defeating the purpose of
self_link
, indicates they shouldn't be used together:Steps to Reproduce
google_compute_instance_group
data-source usingself_link
terraform refresh