Skip to content

Commit

Permalink
[WIP] Update lambda README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
samkahchiin committed Nov 27, 2023
1 parent 359e6fd commit c5100f1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
23 changes: 22 additions & 1 deletion lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module "lambda" {
handler = "index.handler"
timeout = 10
memory_size = 1024
runtime = "ruby3.2"
runtime = "nodejs16.x"
# Subnets the lambdas are allowed to use to access resources in the VPC.
subnet_ids = [
Expand All @@ -43,8 +43,29 @@ module "lambda" {
"arn:aws:secrets:*:abc:123",
]
lambda_policy_json = data.aws_iam_policy_document.s3.json
environment_variables = {
foo = "bar"
}
lambda_role_name = "aws-lambda-role"
}
data "aws_iam_policy_document" "s3" {
statement {
effect = "Allow"
actions = [
"s3:PutObject"
]
resources = ["*"]
}
statement {
effect = "Allow"
actions = [
"kms:GenerateDataKey"
]
resources = ["*"]
}
}
```
3 changes: 0 additions & 3 deletions lambda/output.tf

This file was deleted.

0 comments on commit c5100f1

Please sign in to comment.