on-internet
← Community

How to securely manage environment variables for AWS Elastic Beanstalk using Terraform?

Stack Overflow ·

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

Comments

Sign in or sign up to comment and upvote.

No comments yet.