This module provides an interface for retrieving input parameters from AWS Systems Manager (SSM) Parameter Store. Along with the aws_ssm_outputs module, it allows you to easily manage and access configuration parameters stored in SSM.
Warning
The values looked up by this module are assumed to be insecure. Care should be used when using the values retrieved by this module in secure contexts.
Add this module to your main.tf (or appropriate) file and configure the inputs
to match your desired configuration. For example:
module "module_name" {
source = "github.com/codeforamerica/tofu-modules-aws-ssm-inputs?ref=1.0.0"
prefix = "/my-project/environment"
inputs = ["logging/key", "vpc/id", "vpc/private-subnets"]
}Make sure you re-run tofu init after adding the module to your configuration.
tofu init
tofu planTo update the source for this module, pass -upgrade to tofu init:
tofu init -upgrade| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| inputs | List of parameters to be read. | list |
"dev" |
yes |
| prefix | Prefix for all parameters. Should start with a forward slash (/). |
string |
null |
no |
| Name | Description | Type |
|---|---|---|
| values | Map of retrieved parameters and their values. | map |
Follow the contributing guidelines to contribute to this repository.