Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to know which backend I am using during runtime? #22967

Open
vliao-semios opened this issue Oct 1, 2019 · 0 comments
Open

How to know which backend I am using during runtime? #22967

vliao-semios opened this issue Oct 1, 2019 · 0 comments

Comments

@vliao-semios
Copy link

Current Terraform Version

Terraform v0.12.9
+ provider.aws v2.30.0

Use-cases

I'd like to set module.source value according to the backend configured. E.g. when using remote backend, I want it to use source in github.com, otherwise, just use local source.

Attempted Solutions

Try to use a ... ? ... : ... statement, but can not find where to read the backend configuration in the config file.

Proposal

Add backend configuration in the state file.

References

@hashibot hashibot added the config label Oct 2, 2019
@vliao-semios vliao-semios changed the title Where does terraform.backend stored in the workspace? How to know which backend I am using during runtime? Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants