boltops-tools / terraspace

Terraspace: The Terraform Framework
https://terraspace.cloud
Apache License 2.0
680 stars 46 forks source link

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

Closed tongueroo closed 2 years ago

tongueroo commented 2 years ago

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

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 commented 2 years ago

Released in v0.6.20