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

feat(aws-s3): orphan buckets by default #1273

Merged
merged 4 commits into from
Dec 6, 2018
Merged

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Dec 3, 2018

Switch the default RemovalPolicy of a Bucket to Orphan.

This reduces friction for users with stacks that contain Buckets. In the
99% of cases right now, any activity on a Bucket will cause the stack to
fail to delete, and customers are left wondering how to fix this
situation (see #1269 for example).

It seems better to default to the frictionless case, and have people
opt-in to hard deletes if they know for a fact the operation is going to
work.


Pull Request Checklist

Please check all boxes (including N/A items)

Testing

  • Unit test and/or integration test added
  • Toolkit change?: integration
    tests

    manually executed (paste output to the PR description)
  • Init template change?: coordinated update of integration tests
    (currently maintained in a private repo).

Documentation

  • README: README and/or documentation topic updated
  • jsdocs: All public APIs documented

Title and description

  • Change type: Title is prefixed with change type:
    • fix(module): <title> bug fix (patch)
    • feat(module): <title> feature/capability (minor)
    • chore(module): <title> won't appear in changelog
    • build(module): <title> won't appear in changelog
  • Title format: Title uses lower case and doesn't end with a period
  • Breaking change?: Last paragraph of description is: BREAKING CHANGE: <describe exactly what changed and how to achieve similar behavior + link to documentation/gist/issue if more details are required>
  • References: Indicate issues fixed via: Fixes #xxx or Closes #xxx

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.

Switch the default RemovalPolicy of a Bucket to Orphan.

This reduces friction for users with stacks that contain Buckets. In the
99% of cases right now, any activity on a Bucket will cause the stack to
fail to delete, and customers are left wondering how to fix this
situation (see #1269 for example).

It seems better to default to the frictionless case, and have people
opt-in to hard deletes if they know for a fact the operation is going to
work.
Copy link
Contributor

@eladb eladb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@eladb
Copy link
Contributor

eladb commented Dec 3, 2018

I would say it's not a "fix" but rather a "feat"

@eladb eladb changed the title fix(aws-s3): orphan buckets by default feat(aws-s3): orphan buckets by default Dec 5, 2018
@rix0rrr rix0rrr merged commit 2eb47ad into master Dec 6, 2018
@rix0rrr rix0rrr deleted the huijbers/bucket-retention branch December 6, 2018 09:06
eladb pushed a commit that referenced this pull request Dec 13, 2018
Since s3 buckets now have DeletionPolicy
of "Retain" by default, the init template's
expectation file must be updated.

Related #1273
eladb pushed a commit that referenced this pull request Dec 13, 2018
Since s3 buckets now have DeletionPolicy
of "Retain" by default, the init template's
expectation file must be updated.

Related #1273
@NGL321 NGL321 added the contribution/core This is a PR that came from AWS. label Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants