How to securely manage environment variables for AWS Elastic Beanstalk using Terraform?
We are managing an elastic beanstalk application via terraform, and are unsure of the best way to handle sensitive environment variables for our application. Currently, we are storing these sensitive values in an AWS Secrets Manager secret. During the terraform apply step, we use an aws_secrets_manager_secret data source to load the secret. We then iterate over the key/value pairs in the secret, and create setting blocks within our aws_elastic_beanstalk_environment resource. There are a couple of concerns we have with this approach: We have to mark our sensitive values as nonsensitive, because
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.