Skip to content

Commit 2f1cc73

Browse files
baolsenBjorn Olsen
andauthored
feat(iam): Add permissions_boundary variable (#26)
Co-authored-by: Bjorn Olsen <[email protected]>
1 parent 2575a45 commit 2f1cc73

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ Check [examples](./examples) for non-python examples.
8585
| <a name="input_lambda_kms_key_arn"></a> [lambda\_kms\_key\_arn](#input\_lambda\_kms\_key\_arn) | The ARN of the KMS Key to use when encrypting environment variables. Ignored unless `environment` is specified. | `string` | no |
8686
| <a name="input_layers"></a> [layers](#input\_layers) | List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function. | `list(string)` | no |
8787
| <a name="input_memory_size"></a> [memory\_size](#input\_memory\_size) | Amount of memory in MB your Lambda Function can use at runtime. | `number` | no |
88+
| <a name="input_permissions_boundary"></a> [permissions\_boundary](#input\_permissions\_boundary) | ARN of the policy that is used to set the permissions boundary for the role. | `string` | no |
8889
| <a name="input_policy_arns"></a> [policy\_arns](#input\_policy\_arns) | A list of IAM policy ARNs attached to the lambda function. | `list(string)` | no |
8990
| <a name="input_publish"></a> [publish](#input\_publish) | Whether to publish creation/change as new Lambda Function Version. | `bool` | no |
9091
| <a name="input_reserved_concurrent_executions"></a> [reserved\_concurrent\_executions](#input\_reserved\_concurrent\_executions) | The amount of reserved concurrent executions for this lambda function. A value of 0 disables lambda from being triggered and -1 removes any concurrency limitations. | `number` | no |

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ resource "aws_iam_role" "this" {
2525
name_prefix = var.iam_role_name_prefix
2626
assume_role_policy = data.aws_iam_policy_document.assume.json
2727

28+
permissions_boundary = var.permissions_boundary
29+
2830
tags = var.tags
2931
}
3032

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ variable "policy_arns" {
6161
default = []
6262
}
6363

64+
variable "permissions_boundary" {
65+
description = "ARN of the policy that is used to set the permissions boundary for the role."
66+
type = string
67+
default = null
68+
}
69+
6470
#---------------------------------------------------------------------------------------------------
6571
# CloudWatch Log Group arguments
6672
#---------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)