You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you help me understand what I am doing wrong?
I tried also without passing the GOOGLE_OAUTH_ACCESS_TOKEN, but with the same result.
Before terragrunt, I was using terraform directly with the exact same setup and it worked fine - so github actions can authenticate successfully to gcloud.
Again, this works fine locally, but keeps crashing on github actions. Any suggestion is welcome ! :) For example, is there a way to collect better error messages? This is very terse and I don't know how to debug further
EDIT:
It turns out that the issue was that I didn't set the project and location keys inside the config tuple of the gcs remote_state. The error messages are confusing and it would be great to make this easier to debug! :)
The text was updated successfully, but these errors were encountered:
This is a bad error message, so if this resolves your issue, I would appreciate if you could update the issue to report the bad error message as the bug, along with bad documentation at the bottom here. It should be easier for users to understand that this is the problem when they run into this error.
antspy
changed the title
Unable to connect to GCS using actions, works fine locally
Confusing error message when missing 'location' and 'project'
Dec 27, 2024
Hi,
When I run terragrunt locally, this works:
terragrunt plan --terragrunt-working-dir=src/dir/terraform/prod/cloud
I want to make it work with Github Actions, but I am getting the following error: "ERROR Missing required GCS remote state configuration project".
The setup is as follows:
Could you help me understand what I am doing wrong?
GOOGLE_OAUTH_ACCESS_TOKEN
, but with the same result.My remote state configuration is
Again, this works fine locally, but keeps crashing on github actions. Any suggestion is welcome ! :) For example, is there a way to collect better error messages? This is very terse and I don't know how to debug further
EDIT:
It turns out that the issue was that I didn't set the
project
andlocation
keys inside theconfig
tuple of thegcs remote_state
. The error messages are confusing and it would be great to make this easier to debug! :)The text was updated successfully, but these errors were encountered: