-
|
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 |
Beta Was this translation helpful? Give feedback.
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? |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
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.