How Do I Conditionally Generate Backend #838
Unanswered
AStrangwood
asked this question in
How do I
Replies: 1 comment
-
Hi,
Super simplified example in: https://github.com/denis256/terragrunt-tests/tree/master/discussion-838 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a need were i want to generate two different backends depending on if im running locally or in a CI. To be more specific i would want the
remote_state
block to use an AWSprofile
if im running locally and to useassume_role
if in a CI.I cant find any way to conditionally set the vars for the
remote_state
block. I tried to conditionally set each value ofassume_role
andprofile
but that fails as you cant setassume_role
vars to empty stringsBeta Was this translation helpful? Give feedback.
All reactions