Skip to content

Expose Volume retention policy on MongoDbInstance construct #483

@ddneilson

Description

@ddneilson

The CDK changed the EC2 Volume to retain by default, and added a retention policy property to the EC2 Volume construct about four months ago. The RFDK's MongoDbInstance creates an EC2 Volume, but does not expose a way for the retention policy for the Volume to be set.

As a result, MongoDbInstances created by the RFDK will leave behind a data volume when destroyed.

Use Case

Cleanup after automated testing.

Proposed Solution

Just expose the removalPolicy property in the MongoDbInstanceNewVolumeProps.

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions