Comments (7)
@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.
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.
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.
I proposed a generic solution in #150.
from aws-nuke.
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.
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.
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)
- `NeptuneSnapshot` should be `NeptuneSnapshot`
- No longer logging "removed" state or "finished" status accurately HOT 1
- Allow presets to use other presets in them
- Please Allow "non-prod" in the account alias HOT 1
- aws-nuke is trying to remove AWS provided Opensearch Packages (OSPackage) HOT 4
- Deleting Cloudwatch Event Rules
- Deletion of SecretsManager secret with replica
- Support for CloudFront Response Headers Policy
- Support for Eventbridge Schedules HOT 1
- SIGSEGV: segmentation violation HOT 3
- EKS related IAM Roles are not deleted HOT 2
- Unable to delete IAMRoles and IAMPolicies HOT 3
- aws-nuke resource-types not reporting all known resource types
- Adding support for CloudFront Cache Policy
- Failure to Delete AWS ECR Public Repositories Containing Images using Cloud Control
- Lack of pagination support for multiple list functions
- ERRO[0972] HOT 1
- Filter for all resource types.
- How to filter a resources using 2 property HOT 1
- Add support for Glue SecurityConfiguration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-nuke.