Skip to main content

Module: ssm-parameter-chamber-reader

Terraform module read ssm paramters managed with Chamber.

Examples

  variable "rbac_enabled" {
type = bool
default = null
description = "Override rbac enabled"
}

module "account_id" {
source = "git::https://github.com/cloudposse/terraform-aws-ssm-parameter-chamber-reader.git?ref=master"

enabled = "true"
chamber_service = "kops"
parameter = "rbac_enabled"
override_value = var.rbac_enabled
}

Variables

Required Variables

chamber_service (string) required

SSM parameter service name for use with chamber. This is used in chamber_format where /$chamber_service/$parameter would be the default.

parameter (string) required

SSM parameter name for use with chamber. This is used in chamber_format where /$chamber_service/$parameter would be the default.

Optional Variables

chamber_format (string) optional

Format to store parameters in SSM, for consumption with chamber


Default value: "/%s/%s"

default_value (string) optional

Use as default value in case ssm paramter is empty


Default value: ""

override_key (string) optional

Is specified, use as key to read from ssm parameter and ignore chamber_format.


Default value: ""

override_value (string) optional

Is specified, just return it as value by skipping read from ssm parameter.


Default value: ""

Context Variables

The following variables are defined in the context.tf file of this module and part of the terraform-null-label pattern.

enabled (bool) optional

Set to false to prevent the module from creating any resources
Required: No

Default value: true

Outputs

value

Parameter value

Dependencies

Requirements

  • terraform, version: >= 0.12

Providers

  • aws

Resources

The following resources are used by this module:

Data Sources

The following data sources are used by this module: