boltops-tools / terraspace_plugin_aws

Terraspace AWS Provider
Apache License 2.0
1 stars 4 forks source link

Unable to use secretsmanager after version 0.3.2 #11

Closed raymonds-backyard closed 2 years ago

raymonds-backyard commented 2 years ago

Terraspace aws plugin version 0.3.3 (latest released)

Terraspace version 0.6.23 (latest released)

What happened Deploying our stack which is dependent on the secret "<%= aws_secret("my-secret-here") %>". This was working with our prior Terraspace aws plugin version of 0.3.0 and Terraspace version 0.6.13

This resulted in a NoMethodError: undefined method `[]' for nil:NilClass while evaluating ERB template for the secret.

What you expected to happen The secret to be evaluated correctly with the role defined in config/terraform/providers.tf

Reproducible by planning any stack that utilises the aws_secret helper.

tongueroo commented 2 years ago

Thanks for the report. Resolved this with #14.