Skip to content

Commit

Permalink
Added IAM role and permission path (#9)
Browse files Browse the repository at this point in the history
Co-authored-by: Meraj Kashi <[email protected]>
  • Loading branch information
meraj-kashi and Meraj Kashi authored Oct 28, 2024
1 parent 97a53cd commit 918f2f7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ module "reporter_lambda" {

role_name = var.create_role ? var.name : null
role_permissions_boundary = var.role_permissions_boundary
role_path = var.role_path
policy_path = var.policy_path
timeout = var.lambda_timeout
create_package = false
publish = true
Expand Down
12 changes: 12 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,18 @@ variable "role_permissions_boundary" {
default = null
}

variable "role_path" {
description = "Path of IAM role to use for Lambda Function"
type = string
default = null
}

variable "policy_path" {
description = "Path of policies to that should be added to IAM role for Lambda Function"
type = string
default = null
}

variable "kosli_api_token_ssm_parameter_name" {
description = "The name of the kosli_api_token SSM parameter name"
type = string
Expand Down

0 comments on commit 918f2f7

Please sign in to comment.