Skip to content

Commit

Permalink
Merge pull request #11 from svashisht03/master
Browse files Browse the repository at this point in the history
Adding path to iam_role
  • Loading branch information
marwinbaumannsbp authored Jan 17, 2023
2 parents 611ca0b + 798e0c9 commit 5bb51af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ resource "aws_iam_role" "default" {
name = "${var.name}${var.postfix ? "Role" : ""}"
assume_role_policy = local.assume_policy
max_session_duration = var.max_session_duration
path = var.path
permissions_boundary = var.permissions_boundary
tags = var.tags
}
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ variable "max_session_duration" {
description = "The maximum session duration (in seconds) for the role"
}

variable "path" {
type = string
default = "/"
description = "Path to the role"
}

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

0 comments on commit 5bb51af

Please sign in to comment.