Skip to content

Commit 921301a

Browse files
committed
Remove lambdas
1 parent 9b72181 commit 921301a

File tree

1 file changed

+0
-43
lines changed

1 file changed

+0
-43
lines changed

templates/aws-stack.yml

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,27 +1120,6 @@ Resources:
11201120
ScaleOutForWaitingJobs: !Ref ScaleOutForWaitingJobs
11211121
DisableScaleIn: "false"
11221122

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-
11441123
BootHook:
11451124
Type: AWS::AutoScaling::LifecycleHook
11461125
Properties:
@@ -1151,17 +1130,6 @@ Resources:
11511130
# them
11521131
HeartbeatTimeout: 300
11531132

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-
11651133
ShutdownHook:
11661134
Type: AWS::AutoScaling::LifecycleHook
11671135
Properties:
@@ -1171,14 +1139,3 @@ Resources:
11711139
# We give instances one hour to respond to this hook else we continue
11721140
HeartbeatTimeout: 3600
11731141
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'

0 commit comments

Comments
 (0)