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) requiredSSM parameter service name for use with chamber. This is used in chamber_format where /$chamber_service/$parameter would be the default.
parameter(string) requiredSSM 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) optionalFormat to store parameters in SSM, for consumption with chamber
Default value:
"/%s/%s"default_value(string) optionalUse as default value in case ssm paramter is empty
Default value:
""override_key(string) optionalIs specified, use as key to read from ssm parameter and ignore chamber_format.
Default value:
""override_value(string) optionalIs 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.
context.tf file of this module and part of the terraform-null-label pattern.enabled(bool) optionalSet to false to prevent the module from creating any resources
Required: NoDefault value:
true
Outputs
valueParameter 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:
aws_ssm_parameter.default(data source)