Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
AWS SSM parameter store sample
resource "aws_elastic_beanstalk_environment" "sample_env" {
setting {
namespace = "aws:elasticbeanstalk:application:environment"
value = "${data.aws_ssm_parameter.rds_password.value}"
# use parameter
data "aws_ssm_parameter" "rds_password" {
name = "/${terraform.env}/rds/rds_password"
# Set parameter
resource "aws_ssm_parameter" "rds_password" {
name = "/${terraform.env}/rds/rds_password"
value = "very nice password"
type = "String"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.