Skip to main content

Parameter Store String

๐Ÿ“ฆ Overviewโ€‹

This Terraform module provisions a plain-text string parameter in AWS Systems Manager Parameter Store.
It's ideal for storing lightweight, non-sensitive configuration data such as environment tags or feature flags.


โœ… Key Featuresโ€‹

  • Creates a non-encrypted string parameter
  • Supports custom names, values, and descriptions
  • Enables tagging for environment, ownership, or access control
  • Designed for non-sensitive infrastructure config

๐Ÿ’ผ Use Casesโ€‹

  • Storing non-sensitive feature flags or app settings
  • Passing environment variables to ECS, Lambda, or EC2
  • Managing lightweight infrastructure toggles or state flags
  • Low-overhead parameter tracking without KMS

๐Ÿ“ฅ Input Variablesโ€‹

NameTypeDescription
regionstringAWS region where the parameter will be created
parameter_namestringThe full path name of the parameter (e.g., /app/config/env)
parameter_valuestringThe string value to store
descriptionstring(Optional) Description of the parameter
environmentstringTag to specify the deployment environment (e.g., dev, prod)

๐Ÿ“ค Outputsโ€‹

NameDescription
parameter_nameThe name/path of the created string parameter
parameter_versionThe version number of the stored parameter
parameter_arnThe ARN of the created parameter

๐Ÿš€ Deployment Readinessโ€‹

  • โœ… Compatible with Terraform 1.0+
  • โœ… Tested with AWS provider 5.x
  • ๐Ÿงช Requires IAM permissions to access and write to Parameter Store

๐Ÿ› ๏ธ Example Usageโ€‹

module "parameter_store_string" {
source = "git::ssh://git@github.com/archiphire/aws-level-1-modules.git//developer-utilities/parameter-store-string?ref=v1.0.0"

region = "us-east-1"
parameter_name = "/app/config/env"
parameter_value = "production"
description = "Environment config value"
environment = "prod"
}
terraform init
terraform plan
terraform apply

or

tofu init
tofu plan
tofu apply

๐Ÿงน Cleanup Optionsโ€‹

For testing:

terraform destroy

or

tofu destroy

For production:

Manually delete the parameter via the AWS Console or CLI to avoid disrupting production workloads:

aws ssm delete-parameter --name "/app/config/env"

๐Ÿ›ก๏ธ Notesโ€‹

This is a Level 1 parameter utility module meant for non-sensitive values only. For secrets or encrypted values, use the parameter-store-securestring or secrets-manager-secret module for KMS-backed encryption.

๐Ÿ”’ Deployment Package Noticeโ€‹

This module is part of the Level 1 AWS License Tier. To access the full deployment package and source code, subscribe to Archiphire.