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

Add location arg to bucket backend setup #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tiagovrtr
Copy link

Passes location arg through to create_bucket() for backend setup
Solves #12

Signed-off-by: Tiago Reis <[email protected]>
@tiagovrtr tiagovrtr changed the title Add location arg to bucket Add location arg to bucket backend setup May 23, 2024
@tiagovrtr
Copy link
Author

@tongueroo if you find useful I can add it to the example in lib/templates/ruby/project/config/terraform/backend.rb.tt

terraform {
  backend "gcs" {
    bucket = "<%%= expansion('terraform-state-:PROJECT-:REGION-:ENV') %>"
    prefix = "<%%= expansion(':TYPE_DIR/:APP/:ROLE/:MOD_NAME/:ENV/:EXTRA/:REGION') %>"
    location = "<%%= expansion(':REGION') %>"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant