Skip to content

Commit f60c255

Browse files
committed
chore: initial commit
0 parents  commit f60c255

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# terraform-aws-lambda-runtime
2+
3+
> ECR repository and SSM parameters for custom Lambda runtimes
4+
5+
Terraform module that provisions ECR repository and SSM parameters needed for custom Lambda runtime deployment. Simplifies sharing runtime references between infrastructure and serverless projects.
6+
7+
## Features
8+
9+
- **ECR Repository** with mutable tags for runtime images
10+
- **SSM Parameter** for image reference sharing
11+
- **CloudPosse labeling** for consistent naming
12+
- **Flexible attributes** for multi-runtime support
13+
14+
## Usage
15+
16+
```hcl
17+
module "bash_runtime" {
18+
source = "git::https://github.com/ql4b/terraform-aws-lambda-runtime.git"
19+
20+
attributes = ["bash"]
21+
deploy_tag = "v1.0.0"
22+
23+
context = module.label.context
24+
}
25+
26+
module "golang_runtime" {
27+
source = "git::https://github.com/ql4b/terraform-aws-lambda-runtime.git"
28+
29+
attributes = ["golang"]
30+
31+
context = module.label.context
32+
}
33+
```
34+
35+
## Outputs
36+
37+
- `repository_url` - ECR repository URL for docker push
38+
- `image.name` - Full image name with tag
39+
- `image.ssm_name` - SSM parameter name for serverless reference
40+
41+
## Integration with Serverless
42+
43+
```bash
44+
# Get image from SSM for serverless deployment
45+
aws ssm get-parameter --name $(terraform output -raw image.ssm_name) --query 'Parameter.Value'
46+
```

0 commit comments

Comments
 (0)