Skip to content

Commit 332fc52

Browse files
authored
Merge pull request #38 from maael/fix/boundary-static-deploy
fix: 🐛 Add permission boundary to static deploy lambda
2 parents 03b53f8 + 33bf615 commit 332fc52

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ module "statics_deploy" {
4545
cloudfront_id = module.proxy.cloudfront_id
4646
cloudfront_arn = module.proxy.cloudfront_arn
4747
tags = var.tags
48+
lambda_role_permissions_boundary = var.lambda_role_permissions_boundary
4849
}
4950

5051
# Lambda

modules/statics-deploy/main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ module "deploy_trigger" {
168168
timeout = 60
169169
publish = true
170170
tags = var.tags
171+
role_permissions_boundary = var.lambda_role_permissions_boundary
171172

172173
create_package = false
173174
local_existing_package = module.lambda_content.abs_path

modules/statics-deploy/variables.tf

+5
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,8 @@ variable "tags" {
3030
type = map(string)
3131
default = {}
3232
}
33+
34+
variable "lambda_role_permissions_boundary" {
35+
type = string
36+
default = null
37+
}

0 commit comments

Comments
 (0)