Closed micksear closed 3 years ago
I found that this works by setting env_name: default.
@micksear glad you figured it out! Yeah, checking for out-of-band statefile changes is currently a limitation in the resource: https://github.com/ljfranklin/terraform-resource/blob/681e43cac3650cdc062e1f996adbbf584dd3b595/src/terraform-resource/check/check.go#L27-L29. I'd consider accepting a PR that fixes that limitation if there was a strong use-case, but so far I've only seen people need to do this as a one-off migration, e.g. creating a new CI pipeline with existing statefiles. In these cases, check-resource
+ env_name
as you've described will workaround the issue.
Hi there. Thanks for your work on this useful image.
I have a Concourse GCP project that I create using CloudBuild and Terraform. I want to use an output of that terraform state in a concourse pipeline, so I defined a resource like this:
Later, I have a plan with this:
If I start a build manually, all the other resource versions are correctly detected apart from the one created outside of Concourse: The build-tf.
If I run fly check-resource, it succeeds:
However, in the concourse UI, trying to run the pipeline, I get:
Is this a Concourse issue or an issue with terraform-resource?
Thanks