Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(AwsCustomResource): Created log groups are not being removed after stack is destroyed #26534

Closed
raziza opened this issue Jul 27, 2023 · 2 comments
Labels
bug This issue is a bug. package/tools Related to AWS CDK Tools or CLI

Comments

@raziza
Copy link

raziza commented Jul 27, 2023

Describe the bug

I am using AwsCustomResource for creating and deleting iot:thingGroup. I'm the deployment the AwsCustomResource creating in addition automatically some other AWS Resources - such as roles, lambda, log groups, which are not being deleted completely when destroying the stack.

Destroying the stack having a AwsCustomResource would not remove/delete the log groups which were created by AWS cdk automatically.

Expected Behavior

When a stack is destroyed it should remove all the resources it created - unless it was specifies otherwise.

Current Behavior

Lambdas log groups stays

Reproduction Steps

Create a stack having a AwsCustomResource and destroy it (it does matter which service are we using onCreate/delete/update). Check then cloud watch -> log groups for the remained log groups

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.88.0

Framework Version

2.88.0

Node.js Version

16.13.1

OS

Win 10

Language

Java

Language Version

No response

Other information

No response

@raziza raziza added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jul 27, 2023
@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Jul 27, 2023
@peterwoodworth peterwoodworth removed the needs-triage This issue or PR still needs to be triaged. label Jul 27, 2023
@peterwoodworth
Copy link
Contributor

It's a custom resource, you have to specify yourself what happens when the resource gets deleted

If you have more concerns please open a discussion

@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. package/tools Related to AWS CDK Tools or CLI
Projects
None yet
Development

No branches or pull requests

2 participants