amazon-archives / aws-servicebroker-s3

AWS Service Broker deployment module for Amazon Simple Storage Service
Apache License 2.0
7 stars 3 forks source link

Deprovisioning is not removing S3 instance from AWS #2

Closed VeerMuchandi closed 6 years ago

VeerMuchandi commented 6 years ago

Provisioning works ok. When you deprovision, the job completes. But the S3 bucket is not being removed from AWS.

jaymccon commented 6 years ago

Hi,

At this point this is the expected behavior, see https://github.com/awslabs/aws-servicebroker-s3/blob/master/roles/provision-s3-apb-openshift/files/S3Bucket.yml#L103

The reasoning behind this is that CloudFormation will not gracefully remove buckets that contain data, it is considered the safest approach to leave the bucket behind in case it contains data (like logs) that are required beyond the life of the container.

In the future we may implement deletion of buckets and their contents for dev plans and only retain the buckets on prod plans (possibly even make it optional).

jaymccon commented 6 years ago

This has been addressed in the latest build, see https://github.com/awslabs/aws-servicebroker/ for more details