Skip to content

Commit

Permalink
Reintroduce create_policy
Browse files Browse the repository at this point in the history
  • Loading branch information
fatbasstard committed Apr 23, 2024
1 parent bc33e4f commit f5c7ef8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module "lambda_role" {

source = "github.com/schubergphilis/terraform-aws-mcaf-role?ref=v0.3.3"
name = join("-", compact([var.role_prefix, "LambdaRole", var.name]))
create_policy = true
create_policy = var.create_policy
permissions_boundary = var.permissions_boundary
postfix = false
principal_identifiers = ["edgelambda.amazonaws.com", "lambda.amazonaws.com"]
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ variable "permissions_boundary" {
description = "The permissions boundary to set on the role"
}

variable "create_policy" {
type = bool
default = null
description = "Overrule whether the Lambda role policy has to be created"
}

variable "policy" {
type = string
default = null
Expand Down

0 comments on commit f5c7ef8

Please sign in to comment.