@@ -40,7 +40,6 @@ Metadata:
40
40
- ImageIdParameter
41
41
- InstanceType
42
42
- AgentsPerInstance
43
- - KeyName
44
43
- SpotPrice
45
44
- SecretsBucket
46
45
- ArtifactsBucket
@@ -88,11 +87,6 @@ Metadata:
88
87
- EnableDockerLoginPlugin
89
88
90
89
Parameters :
91
- KeyName :
92
- Description : Optional - SSH keypair used to access the buildkite instances, setting this will enable SSH ingress
93
- Type : String
94
- Default : " "
95
-
96
90
BuildkiteAgentRelease :
97
91
Type : String
98
92
AllowedValues :
@@ -464,17 +458,6 @@ Conditions:
464
458
UseCostAllocationTags :
465
459
!Equals [ !Ref EnableCostAllocationTags, "true" ]
466
460
467
- HasKeyName :
468
- !Not [ !Equals [ !Ref KeyName, "" ] ]
469
-
470
- EnableSshIngress :
471
- !And
472
- - { Condition : CreateSecurityGroup }
473
- # Enable ingress if a key can be specified another way
474
- - !Or
475
- - { Condition: HasKeyName }
476
- - !Not [ !Equals [ !Ref AuthorizedUsersUrl, "" ] ]
477
-
478
461
# Whether or not there's any managed polices to attach
479
462
HasManagedPolicies :
480
463
!Or [ { Condition: UseManagedPolicyARN }, { Condition: UseECR } ]
@@ -693,6 +676,23 @@ Resources:
693
676
- sns:Unsubscribe
694
677
- sns:Subscribe
695
678
Resource : " *"
679
+ - Effect : Allow
680
+ Action :
681
+ - ssm:DescribeInstanceProperties
682
+ - ssm:ListAssociations
683
+ - ssm:PutInventory
684
+ - ssm:UpdateInstanceInformation
685
+ - ssmmessages:CreateControlChannel
686
+ - ssmmessages:CreateDataChannel
687
+ - ssmmessages:OpenControlChannel
688
+ - ssmmessages:OpenDataChannel
689
+ - ec2messages:AcknowledgeMessage
690
+ - ec2messages:DeleteMessage
691
+ - ec2messages:FailMessage
692
+ - ec2messages:GetEndpoint
693
+ - ec2messages:GetMessages
694
+ - ec2messages:SendRepl
695
+ Resource : " *"
696
696
Roles :
697
697
- !Ref IAMRole
698
698
@@ -800,7 +800,6 @@ Resources:
800
800
- DeviceIndex : 0
801
801
AssociatePublicIpAddress : { Ref: AssociatePublicIpAddress }
802
802
Groups : !Split [ ",", !If [ "CreateSecurityGroup", !Ref SecurityGroup, !Ref SecurityGroupId ] ]
803
- KeyName : !If [ "HasKeyName", !Ref KeyName, !Ref 'AWS::NoValue' ]
804
803
IamInstanceProfile :
805
804
Arn : !GetAtt "IAMInstanceProfile.Arn"
806
805
InstanceType : !Ref InstanceType
@@ -949,16 +948,6 @@ Resources:
949
948
- Key : Name
950
949
Value : !Ref 'AWS::StackName'
951
950
952
- SecurityGroupSshIngress :
953
- Condition : EnableSshIngress
954
- Type : AWS::EC2::SecurityGroupIngress
955
- Properties :
956
- GroupId : !GetAtt SecurityGroup.GroupId
957
- IpProtocol : tcp
958
- FromPort : 22
959
- ToPort : 22
960
- CidrIp : 0.0.0.0/0
961
-
962
951
AutoscalingLambdaExecutionRole :
963
952
Type : AWS::IAM::Role
964
953
Condition : HasVariableSize
0 commit comments