Terraform output fails in workflow shell steps: Backend init required? #91
Replies: 1 comment 1 reply
-
The intention behind both of these workflows is to add a bit of automation around a click ops operation. For example, with the VPN, we need to get the client configuration from the Similarly, when we're initially setting up DNS, we need to update the domain registrar with the NS records of the hosted zones created by the I recommend manually running |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In the version of refarch we're using, we're hitting this issue when workflows try to run terraform output and do something with it:
For example, in this workflow:
The terraform deploy step works fine, but the direct call to terraform output explodes with the backend error.
Interestingly, running
atmos terraform output ec2-client-vpn -s core-euc1-network
directly does work, so this seems limited to shell-level usage inside workflows.Here’s another example:
Same issue here — it tries to access terraform output and chokes, asking you manually run
terraform init
first.Are we using some undead or legacy configuration that’s haunting us? 🧟♂️
Or maybe missing something in how state/backend init is handled inside the workflow shell steps?
Beta Was this translation helpful? Give feedback.
All reactions