@@ -27,9 +27,8 @@ Also Note: CodePipeline and CodeDeploy cannot be used together to deploy a Lambd
2727For a Zip file lambda
2828``` hcl
2929module "lambda_api" {
30- source = "github.com/byu-oit/terraform-aws-lambda-api?ref=v2.0.1 "
30+ source = "github.com/byu-oit/terraform-aws-lambda-api?ref=v2.1.0 "
3131 app_name = "my-lambda-codedeploy-dev"
32- env = "dev"
3332 zip_filename = "./src/lambda.zip"
3433 zip_handler = "index.handler"
3534 zip_runtime = "nodejs12.x"
@@ -51,7 +50,7 @@ module "lambda_api" {
5150For a docker image lambda:
5251``` hcl
5352module "lambda_api" {
54- source = "github.com/byu-oit/terraform-aws-lambda-api?ref=v2.0.1 "
53+ source = "github.com/byu-oit/terraform-aws-lambda-api?ref=v2.1.0 "
5554 app_name = "my-docker-lambda"
5655 image_uri = "my-image-from-my-ecr:latest"
5756 hosted_zone = module.acs.route53_zone
@@ -111,7 +110,8 @@ module "lambda_api" {
111110| tags | map(string) | A map of AWS Tags to attach to each resource created | {} |
112111| role_permissions_boundary_arn | string | IAM Role Permissions Boundary ARN | |
113112| log_retention_in_days | number | CloudWatch log group retention in days. Defaults to 7. | 7 |
114- | lambda_policies | list(string) | List of IAM Policy ARNs to attach to the lambda role. | [ ] ' |
113+ | lambda_policies | list(string) | List of IAM Policy ARNs to attach to the lambda role. | [ ] |
114+ | lambda_layers | list(string) | List of Lambda Layer Version ARNs (maximum of 5) to attach to your function. | [ ] |
115115| timeout | number | How long the lambda will run (in seconds) before timing out | 3 (same as terraform default) |
116116| memory_size | number | Size of the memory of the lambda. CPU will scale along with it | 128 (same as terraform default) |
117117| xray_enabled | bool | Whether or not the X-Ray daemon should be created with the Lambda API. | false |
0 commit comments