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

expand_string? interface method so plugins can decide whether or not to expand the string #162

Merged
merged 1 commit into from Dec 14, 2021

Conversation

tongueroo
Copy link
Contributor

@tongueroo tongueroo commented Dec 14, 2021

This is a 🐞 bug fix.
This is a πŸ™‹β€β™‚οΈ feature or enhancement.

  • I've added tests (if it's a bug, feature or enhancement)
  • I've adjusted the documentation (if it's a feature or enhancement)
  • The test suite passes (run bundle exec rspec to verify this)

Summary

Add an expand_string? interface method for plugin expanders.

Context

How to Test

Try a ruby DSL backend.rb like so:

backend.rb

backend("s3",
  bucket:                      'terraform-state-demo-:ACCOUNT-:REGION-:ENV',
  key:                         ':REGION/:ENV/:BUILD_DIR/terraform.tfstate',
  region:                      ":REGION",
  encrypt:                     true,
  dynamodb_table:              "terraform_locks",
  acl:                         "private",
  kms_key_id:                  "arn:aws:kms:us-west-2:112233445566:key/937e938d-02f7-458c-8f9b-30846afd3bd3",
)

Version Changes

Patch

@tongueroo tongueroo merged commit 3056373 into master Dec 14, 2021
@tongueroo tongueroo deleted the expand-string-check branch December 14, 2021 22:35
@tongueroo
Copy link
Contributor Author

Released in v0.6.20

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.

None yet

1 participant