Git Product home page Git Product logo

Comments (7)

svenwltr avatar svenwltr commented on June 14, 2024

@evanread Thanks for your issue. We already thought about this, but we are still looking for a neat way to configure that.

We could just use a * as wildcard, but what if someone has a * in their resource name? We could just create a possibility to escape the wildcard, but this might break existing configs.

Maybe a regex just would work, but there we also need to make sure not to break existing configs.

from aws-nuke.

 avatar commented on June 14, 2024

That's a good point. AWS use * as a wildcard too, so I wasn't aware you could have it in the name: http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html

I would also be happy of there was an option (maybe at the CLI?) where protecting an S3Bucket resource also protects the S3Object contents of the bucket.

from aws-nuke.

svenwltr avatar svenwltr commented on June 14, 2024

I would prefer a generic solution. This feature is also interesting for other resource; eg filtering all access keys of a specific user would be great.

The identifiers in the config are not ARNs. So I am still not sure if we can rely on this for non-S3 resources. IMO the root problem here is, that these filters are just a list of strings, which limits us here very much.

Nevertheless, not having any kind of wildcard is very annoying and we hopefully will fix this soon.

from aws-nuke.

svenwltr avatar svenwltr commented on June 14, 2024

I proposed a generic solution in #150.

from aws-nuke.

lobeck avatar lobeck commented on June 14, 2024

The filters are great, however it would be ideal to have an option to skip a bucket altogether. In our case we have the CloudTrail bucket which contains quite a lot of files and scanning this takes ages (like 10 Minutes) even though all files are excluded by filters.

As all of the files are skipped anyway, there should be an option to exclude a bucket in the first place. Though i have currently no idea how to implement this in a nice and reusable way.

from aws-nuke.

svenwltr avatar svenwltr commented on June 14, 2024

Doing something like this would be quite hard currently, because this would mean that we need to tell the list function for S3 Object what Buckets to skip. Also I do not want to add S3 specific code to the resource handling, so we would need a generic solution.

I guess this is worth a separate issue.

from aws-nuke.

svenwltr avatar svenwltr commented on June 14, 2024

This is already solved with having multiple filter types. See README and this example configuration:

S3Object:
- type: regex
  value: "s3://my-bucket/.*"

from aws-nuke.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.