Skip to content

codeforamerica/tofu-modules-aws-ssm-inputs

Repository files navigation

AWS SSM Inputs Module

Main Checks GitHub Release

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.

Usage

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 plan

To update the source for this module, pass -upgrade to tofu init:

tofu init -upgrade

Inputs

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

Outputs

Name Description Type
values Map of retrieved parameters and their values. map

Contributing

Follow the contributing guidelines to contribute to this repository.

About

OpenTofu module to read configuration inputs from AWS SSM parameters.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages