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

ensure ELB deletion works with > 20 load balancers; remove all S3 object versions #335

Merged
merged 3 commits into from
Feb 26, 2019

Conversation

steved
Copy link
Contributor

@steved steved commented Feb 22, 2019

  • LoadBalancerNames allows only a maximum of 20 names in a list before bombing out, so call the DescribeTags function on each load balancer in a loop even though it's more inefficient.

  • Removing all S3 objects is unfortunately not enough if versioning is enabled. This PR empties all object versions as well.

Copy link
Member

@svenwltr svenwltr left a comment

Choose a reason for hiding this comment

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

@rebuy-de/prp-aws-nuke Please review.

)

// DeleteListVersionListIterator is an iterator for S3 Object Versions.
type DeleteVersionListIterator struct {
Copy link
Member

Choose a reason for hiding this comment

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

The type name should contain S3, so the name makes clear what service the resource belongs to. Also the file name should match the type name.

Since the type is only used by S3Bucket I think it should even be part of s3-buckets.go, since we should keep the number of files low.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense. I actually originally had it in s3-buckets.go, I'll move it back.

@svenwltr svenwltr merged commit 3862307 into rebuy-de:master Feb 26, 2019
@svenwltr svenwltr added the kind/resource Adding or changing AWS resources. label Mar 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/resource Adding or changing AWS resources.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants