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โ
| Name | Type | Description |
|---|---|---|
region | string | AWS region where the parameter will be created |
parameter_name | string | The full path name of the parameter (e.g., /app/config/env) |
parameter_value | string | The string value to store |
description | string | (Optional) Description of the parameter |
environment | string | Tag to specify the deployment environment (e.g., dev, prod) |
๐ค Outputsโ
| Name | Description |
|---|---|
parameter_name | The name/path of the created string parameter |
parameter_version | The version number of the stored parameter |
parameter_arn | The 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.