Skip to content

Commit a8eb4e8

Browse files
author
Austin Johnson
committed
Rolling back VPC changes to S3Cleanup as it was causing errors
1 parent b197afa commit a8eb4e8

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

templates/codebuild-deploy.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,29 +1237,17 @@ Resources:
12371237
# custom resource to cleanup S3 buckets
12381238
S3Cleanup:
12391239
Type: Custom::S3Cleanup
1240-
DeletionPolicy: Retain
1241-
UpdateReplacePolicy: Retain
12421240
Condition: ShouldCleanupBuckets
12431241
Properties:
12441242
ServiceToken: !GetAtt S3CleanupLambda.Arn
1245-
ServiceTimeout: 60
12461243
Buckets:
12471244
- !Ref WebAppBucket
12481245

12491246
# Lambda function for custom resource
12501247
S3CleanupLambda:
12511248
Type: AWS::Lambda::Function
1252-
Condition: ShouldCleanupBuckets
1249+
Condition: ShouldCleanupBuckets
12531250
Properties:
1254-
VpcConfig:
1255-
!If
1256-
- NeedsVpc
1257-
-
1258-
SecurityGroupIds:
1259-
- !Ref VpcSecurityGroupId
1260-
SubnetIds:
1261-
- !Ref VpcSubnetId
1262-
- !Ref "AWS::NoValue"
12631251
Code:
12641252
S3Bucket: !Ref SourceBucket
12651253
S3Key: !Ref CustomResourceCodeObject

0 commit comments

Comments
 (0)