Skip to content

Commit adbf893

Browse files
Add optional PermissionsBoundary parameter (#23)
It's an optional parameter to AWS::Serverless::Function that allows setting the PermissionsBoundary property of the AWS::IAM::Role resource This is requred by corporate IAM policy at my work
1 parent 5dbb9eb commit adbf893

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

template.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ Parameters:
3939
Description: |
4040
The export name suffix for the function ARN
4141
Default: LogIngestionFunctionArn
42+
PermissionsBoundary:
43+
Type: String
44+
Description: IAM Role PermissionsBoundary (optional)
4245

4346
Conditions:
4447
NoRole: !Equals ['', !Ref FunctionRole]
@@ -69,6 +72,7 @@ Resources:
6972
MemorySize:
7073
Ref: MemorySize
7174
Runtime: python3.7
75+
PermissionsBoundary: !Ref PermissionsBoundary
7276
Role: !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:role/${FunctionRole}
7377
Timeout:
7478
Ref: Timeout
@@ -89,6 +93,7 @@ Resources:
8993
MemorySize:
9094
Ref: MemorySize
9195
Runtime: python3.7
96+
PermissionsBoundary: !Ref PermissionsBoundary
9297
Timeout:
9398
Ref: Timeout
9499
Environment:

0 commit comments

Comments
 (0)