kristijorgji / terraform-aws-ssm-store

Simple module to store different parameters to SSM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform module: AWS SSM Store

Lint Status Docs Status Tag License

This Terraform module can create an arbitrary number of SSM-keys to store parameters.

Usage

Assumeable roles

module "iam_roles" {
  source = "github.com/flaconi/terraform-aws-ssm-store?ref=v1.0.0"

  tags =  {
   "Created by" = "terraform"
  }

  kms_alias =  "alias/aws/ssm"

  name_prefix = "/applications/app1"
  parameters = [
    {
      name  = "secure"
      value = "securevalue"
    },
    {
      name  = "secure2"
      value = "securevalue2"
      type  = "SecureString" # Set explicitly
    },
    {
      name  = "insecure"
      value = "insecurevalue"
      type  = "String"
    },
  ]
}

Requirements

Name Version
terraform >= 1.3
aws >= 5

Providers

Name Version
aws >= 5

Modules

No modules.

Resources

Name Type
aws_ssm_parameter.this resource
aws_kms_key.this data source

Inputs

Name Description Type Default Required
kms_alias kms_alias sets the kms alias used for SecureString string "alias/aws/ssm" no
name_prefix name_prefix prefixes the given name with a prefix string "" no
parameters A list of dicts with parameter information
list(object({
name = string
type = optional(string, "SecureString") # String, StringList or SecureString
value = string
}))
[] no
tags Tags applied to the resources map(string) {} no

Outputs

No outputs.

License

MIT License

Copyright (c) 2023 Flaconi GmbH

About

Simple module to store different parameters to SSM

License:MIT License


Languages

Language:Makefile 79.3%Language:HCL 20.7%