Skip to content

aws-sns: KMS key is not deleted in integ.sns.ts #29663

@jun1-t

Description

@jun1-t

Describe the bug

KMS key is created in integ test(integ.sns.ts), but KMS key remains after integ test.
Because RemovalPolicy.DESTROY is not set.

const key = new Key(this, 'CustomKey');

Expected Behavior

KMS key created within integ test should be deleted.

Current Behavior

KMS key created within integ test remains after integ test.

Reproduction Steps

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.134.0

Framework Version

No response

Node.js Version

v18.17.1

OS

Linux/UNIX

Language

TypeScript

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-snsRelated to Amazon Simple Notification ServicebugThis issue is a bug.effort/smallSmall work item – less than a day of effortp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions