Resource that allows to declare multiple variables in map, and for each of them creates a new AWS SSM key resource.
Name | Version |
---|---|
terraform | >= 0.13 |
aws | >= 3.27.0 |
Name | Version |
---|---|
aws | >= 3.27.0 |
Name | Type |
---|---|
aws_ssm_parameter.default | resource |
Name | Version |
---|---|
aws | >= 3.27.0 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
name_parts | Parts of ssm variable name | list(string) |
n/a | yes |
env_object | Map with ssm variable name and its value | map(string) |
n/a | yes |
description | Description that will be passed to each variable | string |
"" |
no |
type | Available (String, StringList, SecureString) | string |
"String" |
no |
key_id | Key id that will be passed to each variable | any |
null |
no |
tags | Tags of resource. Provided values will be merged with default_tags | map(string) |
{} |
no |
default_tags | Default tags that will be merged with var.tags | map(string) |
{ |
no |
module "string_ssm_keys" {
source = "[email protected]:masterborn/terraform-aws-ssm-key-group.git?ref=v1.0.2"
name_parts = [local.tags["Module"]]
env_object = merge(
{
VPC_ID = var.vpc_id
SUBNET_IDS = join(",", var.subnet_ids)
NODE_ENV = "production"
},
var.string_keys
)
tags = local.tags
}
module "secure_string_ssm_keys" {
source = "[email protected]:masterborn/terraform-aws-ssm-key-group.git?ref=v1.0.2"
name_parts = [local.tags["Module"]]
type = "SecureString"
key_id = module.main-kms.key_id
env_object = var.secret_string_keys
tags = local.tags
}
Following pre-commit hooks are provided:
- terraform-fmt to check syntax of terraform
- terraform-docs to recreate README.md according to terraform module properties
- end-of-file-fixer to ensure that each file ends with newline
To install pre-commit
check .
pre-commit install