Repository navigation
|
I have: and the backend config in the directory: I don't use workspaces, so the default is fine by me. This is all computed correctly. However, the job fails with: Where does the prefix |
Answered by
dflook
May 14, 2026
Replies: 2 comments
|
Hi @TurboNHS, I think you are running into a quirk with Terraform's i.e. backend_config: bucket=my-prefix-${{ env.ENVIRONMENT }}-stateCan you give that a try? |
0 replies
Answer selected by
TurboNHS
|
Awesome, thanx! That worked perfectly.. Although, in the script that I'm transition away from (hoping for less code to maintain :), I have: Which works fine. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @TurboNHS, I think you are running into a quirk with Terraform's
-backend-configflag thatbackend_configuses. Unlike in a backend config file, you have to specify key=value without any quotes.i.e.
Can you give that a try?
env:/is a default prefix when working with workspaces - I think terraform is just confused here and giving an unhelpful error.