File tree Expand file tree Collapse file tree 1 file changed +0
-43
lines changed Expand file tree Collapse file tree 1 file changed +0
-43
lines changed Original file line number Diff line number Diff line change @@ -1120,27 +1120,6 @@ Resources:
1120
1120
ScaleOutForWaitingJobs : !Ref ScaleOutForWaitingJobs
1121
1121
DisableScaleIn : " false"
1122
1122
1123
- LifecycleHookLambdaRole :
1124
- Type : AWS::IAM::Role
1125
- Properties :
1126
- Path : /
1127
- AssumeRolePolicyDocument :
1128
- Statement :
1129
- - Effect : Allow
1130
- Principal :
1131
- Service : lambda.amazonaws.com
1132
- Action : sts:AssumeRole
1133
- ManagedPolicyArns :
1134
- - arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
1135
- Policies :
1136
- - PolicyName : CompleteLifecycleAction
1137
- PolicyDocument :
1138
- Version : ' 2012-10-17'
1139
- Statement :
1140
- - Effect : Allow
1141
- Action : autoscaling:CompleteLifecycleAction
1142
- Resource : !Sub arn:${AWS::Partition}:autoscaling:${AWS::Region}:${AWS::AccountId}:autoScalingGroup:*:autoScalingGroupName/${AWS::StackName}-AgentAutoScaleGroup-*
1143
-
1144
1123
BootHook :
1145
1124
Type : AWS::AutoScaling::LifecycleHook
1146
1125
Properties :
@@ -1151,17 +1130,6 @@ Resources:
1151
1130
# them
1152
1131
HeartbeatTimeout : 300
1153
1132
1154
- BootHookFunction :
1155
- Type : AWS::Lambda::Function
1156
- Properties :
1157
- Description : ' Launch Buildkite Agent on Auto Scaling group instance'
1158
- Code :
1159
- ZipFile : |
1160
-
1161
- Handler : index.handler
1162
- Role : !GetAtt LifecycleHookLambdaRole.Arn
1163
- Runtime : ' nodejs14.x'
1164
-
1165
1133
ShutdownHook :
1166
1134
Type : AWS::AutoScaling::LifecycleHook
1167
1135
Properties :
@@ -1171,14 +1139,3 @@ Resources:
1171
1139
# We give instances one hour to respond to this hook else we continue
1172
1140
HeartbeatTimeout : 3600
1173
1141
DefaultResult : CONTINUE
1174
-
1175
- ShutdownHookFunction :
1176
- Type : AWS::Lambda::Function
1177
- Properties :
1178
- Description : ' Terminate Buildkite Agent on Auto Scaling group instance'
1179
- Code :
1180
- ZipFile : |
1181
-
1182
- Handler : index.handler
1183
- Role : !GetAtt LifecycleHookLambdaRole.Arn
1184
- Runtime : ' nodejs14.x'
You can’t perform that action at this time.
0 commit comments