Skip to content

terraform init using backend-config #350

Answered by rdhar
fulgas asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @fulgas, this is a great shout, thanks for raising! As it happens, TF-via-PR does support the key-value map for -var input, but not yet for -backend-config.

One complicating factor for this is that -backend-config input is used for naming the plan file artifact uploaded by the workflow. Unfortunately, GitHub enforces a limit a 256 characters for the artifact name. As you can imagine, we reach that limit pretty quickly by just passing in a couple lengthy arguments.

That's not to mention that , is used as a separator, so none of the arguments can include a comma—which may or may not be within one's control.

While my current recommendation is to save these argument combinations in variou…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@fulgas
Comment options

@rdhar
Comment options

rdhar Nov 6, 2024
Maintainer

@rdhar
Comment options

rdhar Nov 8, 2024
Maintainer

Answer selected by fulgas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants