Skip to content

Commit 2ec871c

Browse files
authored
Merge pull request #35 from maael/fix/boundary-edge-proxy
fix: 🐛 Pass permissions boundary to edge proxy lambda
2 parents 20b8d41 + 345b469 commit 2ec871c

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
@@ -143,6 +143,7 @@ module "proxy" {
143143
cloudfront_minimum_protocol_version = var.cloudfront_minimum_protocol_version
144144
debug_use_local_packages = var.debug_use_local_packages
145145
tags = var.tags
146+
lambda_role_permissions_boundary = var.lambda_role_permissions_boundary
146147

147148
providers = {
148149
aws = aws.global_region

modules/proxy/main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ module "edge_proxy" {
4343
description = "Managed by Terraform-next.js"
4444
handler = "handler.handler"
4545
runtime = var.lambda_default_runtime
46+
role_permissions_boundary = var.lambda_role_permissions_boundary
4647

4748
create_package = false
4849
local_existing_package = module.proxy_package.abs_path

modules/proxy/variables.tf

+5
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,8 @@ variable "tags" {
6565
type = map(string)
6666
default = {}
6767
}
68+
69+
variable "lambda_role_permissions_boundary" {
70+
type = string
71+
default = null
72+
}

0 commit comments

Comments
 (0)