Open mjrlee opened 5 years ago
I ran into this wrt google_container_registry_image
, wanting to have automatic resolution if I provide a tag
that is mutable, and I do not provide a digest
, that I can still read the digest
out of the data and have the provider facilitate that lookup for me. This would improve release processes where the image reference is never re-pulled by the underlying facility, since terraform naturally won't see a difference between :latest
and :latest
images, even if between the two apply phases, someone changed the tag.
I would expect that Artifact Registry would have the same issue, but individual packages don't appear to be part of the provider yet.
Community Note
Description
I would like to use the latest digest of a tagged image in GCR for the metadata for an instance group.
At the moment I have to use the Docker provider, which adds an authentication step and requires Docker to be installed on the CI/CD runner.
This could be greatly simplified by having a terraform data source that does something like:
Affected Resource(s)
Datasource:
Potential Terraform Configuration
References