Skip to content

Commit

Permalink
fix(globalaccelerator): change onCreate to onUpdate handler for globa…
Browse files Browse the repository at this point in the history
…laccelerator custom resource handler to fix cloudFormation update failure
  • Loading branch information
jingwy committed Mar 26, 2024
1 parent f60e6e9 commit 06f0c0c
Show file tree
Hide file tree
Showing 14 changed files with 193 additions and 250 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

This file was deleted.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@
"S3Bucket": {
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
},
"S3Key": "18d379b052acd60e0d086d5b19d9bef956ebc0bd018c5570960125aab0c7f837.zip"
"S3Key": "e978ad4ad0dca7e1c6be5f49cbbd1c5a150ee050c24052fedfe5a42f835d55da.zip"
},
"Timeout": 900,
"MemorySize": 128,
Expand Down Expand Up @@ -579,6 +579,18 @@
]
]
},
"Update": {
"Fn::Join": [
"",
[
"{\"service\":\"EC2\",\"action\":\"describeSecurityGroups\",\"parameters\":{\"Filters\":[{\"Name\":\"group-name\",\"Values\":[\"GlobalAccelerator\"]},{\"Name\":\"vpc-id\",\"Values\":[\"",
{
"Ref": "Vpc8378EB38"
},
"\"]}]},\"physicalResourceId\":{\"responsePath\":\"SecurityGroups.0.GroupId\"}}"
]
]
},
"InstallLatestAwsSdk": false
},
"DependsOn": [
Expand Down Expand Up @@ -699,7 +711,7 @@
"S3Bucket": {
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
},
"S3Key": "e5178afc49b7c6a85127a67856ce958e4f0879ce6aad5e974cac2a088bf939db.zip"
"S3Key": "482f9f5ffd706706c8ef3652699d6c945568786593d3571e4331ecb1f966c932.zip"
},
"Handler": "index.handler",
"Role": {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class AcceleratorSecurityGroupPeer implements ec2.IPeer {

// The AWS Custom Resource that make a call to EC2 to get the security group ID, for the given VPC
const lookupAcceleratorSGCustomResource = new AwsCustomResource(scope, id + 'CustomResource', {
onCreate: {
onUpdate: {
service: 'EC2',
action: 'describeSecurityGroups',
parameters: {
Expand Down

0 comments on commit 06f0c0c

Please sign in to comment.