Skip to content

Terraform module for getting list of environment variable names associated with encrypted secrets in SSM Param Store. The output of this module is in a format that is ready to be injected directly into a container definition on ECS Fargate.

License

Notifications You must be signed in to change notification settings

Chia-Explorer/secrets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secrets

This Terraform module takes a list of environment variable names associated with SSM parameters.

The parameters must already exist after having been created elsewhere.

The purpose of all of this is to get the generated output which contains the environment variable name along with the ARN of the associated parameter. The output secrets are in a format that is ready to be passed directly into a container definition in ECS Fargate.

No secret values are stored in Terraform state by this module.

Example usage

module "secrets" {
  source = "git::https://github.com/Chia-Explorer/secrets?ref=1.0.0"

  secrets = [{
    env_name = "USERNAME"
    ssm_param_name = "/chia/app/username"
  }, {
    env_name = "PASSWORD"
    ssm_param_name = "/chia/app/password"
  }, {
    env_name = "PRIVATE_KEY"
    ssm_param_name = "/chia/app/private_key"
  }]
}

About

Terraform module for getting list of environment variable names associated with encrypted secrets in SSM Param Store. The output of this module is in a format that is ready to be injected directly into a container definition on ECS Fargate.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages