/terraform-aws-ssm-parameter

Provide a simple way to create multiple parameters in AWS SSM ParameterStore

Primary LanguageHCL

terraform-aws-ssm-parameter

This module is responsible of creating/updating parameters in AWS System Manager - ParameterStore.

Sample Code

You could find a sample code in examples directory.

###############################
# Create a Simple Parameter in SSM ParameterStore
###############################
module "ssm_user" {
  source  = "../ssm-parameter"

  namespace = local.namespace
  tags      = var.tags

  parameters = {
    format("%s_user", var.username) = {
      description = "Store username for entity ${entity}"
      value       = var.username
      overwrite   = false
    },
  }
}

Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

No modules.

Resources

Name Type
aws_ssm_parameter.config resource

Inputs

Name Description Type Default Required
namespace Prefix prepended to parameter name if not using default string n/a yes
parameters Parameters expressed as a map of maps. Each map's key is its intended SSM parameter name, and the value stored under that key is another map that may contain the following keys: description, type, and value. map(map(string)) n/a yes
tags common tags map(string) {} no

Outputs

Name Description
parameters The list of parameters created by the module