Correct usage of Chamber of Secrets #73
-
|
Hi guys, There are several ways to get secrets in my terraform code listed on cloudposse and atmos.tools. What is the one you actually currently recommend? Given this workflow: I created a secret in chamber, for example like this: and my terraform code now needs to use it, something like this: main.tf: How do I get them there? From atmos, using atmos.Store? Or directly from terraform? What do you prefer? What (if any) is the rule of thumb? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
You have a few choices when it comes to secrets management, and ultimately it’ll depend on your use case. We recommend using AWS SSM Parameter Store to store the secret, where you define the path to the secret as a Terraform variable. We do not recommend storing the secret directly in Terraform. Doing so means the secret is saved to Git and to Terraform state, and may be exposed if we give another user read access to state (which is not uncommon). We also do not recommend using AWS SSM Parameter Store is the best solution because:
In your workflow, you’d write the secret to SSM Parameter Store (e.g., using chamber or the AWS CLI), then configure your Terraform variables to reference those paths. Also, please see our design decision on Secrets Management Strategy for Terraform and Secrets Placement for Terraform |
Beta Was this translation helpful? Give feedback.
You have a few choices when it comes to secrets management, and ultimately it’ll depend on your use case. We recommend using AWS SSM Parameter Store to store the secret, where you define the path to the secret as a Terraform variable.
We do not recommend storing the secret directly in Terraform. Doing so means the secret is saved to Git and to Terraform state, and may be exposed if we give another user read access to state (which is not uncommon).
We also do not recommend using
!storewith Atmos for secrets at this time. The store feature is not designed with sensitive values in mind — values are printed to Atmos logs, which can inadvertently expose credentials.AWS SSM Parameter Store is…