Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinZZ committed Apr 19, 2024
1 parent 8997a06 commit d5d4ff6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ async function onUpdate(event: AWSLambda.CloudFormationCustomResourceEvent) {
/* If the name of the bucket has changed, CloudFormation will try to delete the bucket
and create a new one with the new name. Returning a PhysicalResourceId that differs
from the event's PhysicalResourceId will trigger a `Delete` event for the custom
resource. The `Delete` event will trigger `onDelete` function which will
empty the content of the bucket and then proceed to delete the bucket. */
resource, note that this is default CFN behaviour. The `Delete` event will trigger
`onDelete` function which will empty the content of the bucket and then proceed to
delete the bucket. */
return { PhysicalResourceId: newBucketName };
}

Expand Down

0 comments on commit d5d4ff6

Please sign in to comment.