Skip to content

Add new shutdown EMR Serverless application lambda into the CDK app #5810

@Rob9786

Description

@Rob9786

User Story

As a Sleeper user, when I remove the CloudFormation stack I expect all of the assets linked to that stack to be cleaned up correctly.

Description / Background

Split from ticket

During testing it was observed that EMR Serverless tasks were not fully terminated when stopped from within CloudFormation.

A new lambda has been developed to tear down EMR Serverless applications within the CDK. The new lambda now needs to be attached to each deployed EMR Serverless stack.

Acceptance Criteria

Gherkin format example:

Given A EMR Serverless stack deployment
When I delete the stack
Then All of the assets associated with that stack are removed

Technical Notes / Implementation Details

  • Create a new CDK stack called AutoStopEMRServerlessStack.
  • Update SleeperCDKApp to create an instance of AutoStopEMRServerlessStack
  • Pass the new instance into EmrServerlessBulkImportStack
  • Update EMRServerlessBulkImportStack to add the AutoStopEMRServerlessStack as a dependency.

Dependencies / Blockers

Complete #5375 first.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions