ECR repository and SSM parameters for custom Lambda runtimes
Terraform module that provisions ECR repository and SSM parameters needed for custom Lambda runtime deployment. Simplifies sharing runtime references between infrastructure and serverless projects.
- ECR Repository with mutable tags for runtime images
- SSM Parameter for image reference sharing
- CloudPosse labeling for consistent naming
- Flexible attributes for multi-runtime support
module "bash_runtime" {
source = "git::https://github.com/ql4b/terraform-aws-lambda-runtime.git"
attributes = ["bash"]
deploy_tag = "v1.0.0"
context = module.label.context
}
module "golang_runtime" {
source = "git::https://github.com/ql4b/terraform-aws-lambda-runtime.git"
attributes = ["golang"]
context = module.label.context
}
repository_url
- ECR repository URL for docker pushimage.name
- Full image name with tagimage.ssm_name
- SSM parameter name for serverless reference
# Get image from SSM for serverless deployment
aws ssm get-parameter --name $(terraform output -raw image.ssm_name) --query 'Parameter.Value'