Skip to content

Commit 5ba33e8

Browse files
author
James Healy
authored
Merge pull request #802 from buildkite/revert-767
Revert PR 767
2 parents 69ed7a5 + 0dc01a1 commit 5ba33e8

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

templates/aws-stack.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,6 @@ Parameters:
308308
Description: Optional - A name for the IAM Role attached to the Instance Profile
309309
Default: ""
310310

311-
InstanceRolePermissionsBoundaryARN:
312-
Type: String
313-
Description: The ARN of the policy used to set the permissions boundary for the role.
314-
Default: ""
315-
316311
InstanceOperatingSystem:
317312
Type: String
318313
Description: The operating system to run on the instances
@@ -450,9 +445,6 @@ Conditions:
450445
SetInstanceRoleName:
451446
!Not [ !Equals [ !Ref InstanceRoleName, "" ] ]
452447

453-
SetInstanceRolePermissionsBoundaryARN:
454-
!Not [ !Equals [ !Ref InstanceRolePermissionsBoundaryARN, "" ] ]
455-
456448
UseSpecifiedSecretsBucket:
457449
!Not [ !Equals [ !Ref SecretsBucket, "" ] ]
458450

@@ -664,7 +656,6 @@ Resources:
664656
Type: AWS::IAM::Role
665657
Properties:
666658
RoleName: !If [ SetInstanceRoleName, !Ref InstanceRoleName, !Sub "${AWS::StackName}-Role" ]
667-
PermissionsBoundary: !If [ SetInstanceRolePermissionsBoundaryARN, !Ref InstanceRolePermissionsBoundaryARN ]
668659
ManagedPolicyArns: !If
669660
- HasManagedPolicies
670661
# Support multiple policies to attach by merging the values together and splitting on ','
@@ -1028,7 +1019,6 @@ Resources:
10281019
AsgProcessSuspenderRole:
10291020
Type: AWS::IAM::Role
10301021
Properties:
1031-
PermissionsBoundary: !If [ SetInstanceRolePermissionsBoundaryARN, !Ref InstanceRolePermissionsBoundaryARN ]
10321022
AssumeRolePolicyDocument:
10331023
Version: 2012-10-17
10341024
Statement:
@@ -1105,7 +1095,6 @@ Resources:
11051095
Type: AWS::IAM::Role
11061096
Condition: HasVariableSize
11071097
Properties:
1108-
PermissionsBoundary: !If [ SetInstanceRolePermissionsBoundaryARN, !Ref InstanceRolePermissionsBoundaryARN ]
11091098
Path: "/"
11101099
AssumeRolePolicyDocument:
11111100
Version: '2012-10-17'

0 commit comments

Comments
 (0)