vpc: restrictDefaultSecurityGroup creates log group but doesn't delete it on destroy #29248
Labels
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
If you set restrictDefaultSecurityGroup to true when creating a VPC, the custom resource creates a log group. When the VPC is destroyed the log group from the custom resource is not deleted.
Expected Behavior
The log group should be deleted.
Current Behavior
The log group is still present after destroying the VPC.
Reproduction Steps
new ec2.Vpc(this, 'VPC', {
restrictDefaultSecurityGroup: true,
});
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.130.0 (build bd6e5ee)
Framework Version
No response
Node.js Version
v18.18.0
OS
macOS
Language
TypeScript, Go
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: