Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

feat: support iam role permissions_boundary #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ data "aws_iam_policy_document" "assume_role" {
}

resource "aws_iam_role" "lambda" {
name = var.function_name
assume_role_policy = data.aws_iam_policy_document.assume_role.json
tags = var.tags
name = var.function_name
assume_role_policy = data.aws_iam_policy_document.assume_role.json
permissions_boundary = var.permissions_boundary_arn
tags = var.tags
}

# Attach a policy for logs.
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ variable "description" {
default = null
}

variable "permissions_boundary_arn" {
type = string
default = null
}

variable "layers" {
type = list(string)
default = null
Expand Down