cloudposse / terraform-aws-ssm-parameter-store

Terraform module to populate AWS Systems Manager (SSM) Parameter Store with values from Terraform. Works great with Chamber.
https://cloudposse.com/accelerate
Apache License 2.0
109 stars 60 forks source link

Flag sensitive values as described in terraform 0.14 upgrade #28

Closed wszychta closed 3 years ago

wszychta commented 3 years ago

what

why

When I wanted to use module with terraform 0.14 I got error:

Error: Output refers to sensitive values

  on .terraform/modules/akamai_ssm_data/outputs.tf line 48:
  48: output "values" {

Expressions used in outputs can only refer to sensitive values if the
sensitive attribute is true.

Error: Output refers to sensitive values

  on .terraform/modules/akamai_ssm_data/outputs.tf line 53:
  53: output "map" {

Expressions used in outputs can only refer to sensitive values if the
sensitive attribute is true.

To Fix this issue we need to add sensitive = true flag to both outputs. Now Terraform will not display sensitive values, but we can still use them in other modules. Look into provided link in references if you want to know more.

references

Nuru commented 3 years ago

/test all