Comments (9)
Probably most of the requirements could be fulfilled by simple glob style matching, right?
I would go for the first solution (type: regex
).
from aws-nuke.
Probably most of the requirements could be fulfilled by simple glob style matching, right?
Do you mean like this?
accounts:
"00000000000":
filters:
S3Bucket:
- "s3://my-bucket/b*sh.txt"
This would work, but I do not see any guarantee that the wildcard *
will never be part of an resource identifier.
And if you mean it like this:
accounts:
"00000000000":
filters:
S3Bucket:
- type: glob
id: "s3://my-bucket/b*sh.txt"
This would be easy to implement, if we have the basic code foundation.
from aws-nuke.
I meant it like this:
accounts:
"00000000000":
filters:
S3Bucket:
- type: glob
id: "s3://my-bucket/b*sh.txt"
from aws-nuke.
Probably we should implement both (which is easy), because globs are easier to write and regex has the full functionality.
from aws-nuke.
from aws-nuke.
@svenwltr this should be available to more than S3 buckets, it a highly useful update
from aws-nuke.
@tomvachon Yes, it is intended to be available to all resources. Actually, implementing it for S3 Buckets only would be even harder.
from aws-nuke.
I very much like this proposal. Regex / glob would greatly simplify things. The old format would become the shorthand for the new type: exact
format (this is just rephrasing it from a conceptual view).
This map should contain a type and optionally the data for the filter.
Why do you want to make the data field for the filter optional? What would be the default value?
Being rather nitpicky:
accounts: "00000000000": filters: S3Bucket: - regex: "s3://my-bucket/b[iao]sh\\.txt"
How come we would need two \
to escape the .
?
from aws-nuke.
This map should contain a type and optionally the data for the filter.
Why do you want to make the data field for the filter optional? What would be the default value?
Probably depending on the Ok it is unlikely that this will be optional.type
, but for exact
, glob
and regex
they should be mandatory.
How come we would need two \ to escape the .?
One for escaping the\
in YAML and the next one for actually escaping the.
in the regex.
from aws-nuke.
Related Issues (20)
- Change to different linter (`golint` is no longer supported)
- A LOT of errors in the log HOT 1
- Sagemaker not deleting properly HOT 1
- Amazon App Runner support
- Cloud-control api support not working HOT 1
- regex error when parsing config.yaml
- Filter with date not working HOT 1
- Ability to delete virtual clusters launched by EMR containers
- CloudFront Origin Access Control are not supported
- Previous report as an input HOT 1
- Add GameLift support
- Add support for AWS Application Migration Service (MGN) resources HOT 2
- CloudFront Functions are not supported HOT 2
- About the latest release HOT 5
- AWS Nuke not deleting code star hosts HOT 2
- How can I exclude deleting of Cloudwatch group? HOT 4
- DOUBT: I have Region Deny in my AWS Org. Does this solution work in this scenario? HOT 1
- Hard-coded check for presence of "prod" string in account alias is too restrictive HOT 2
- [Cloudwatch logs group] This operation, ListTagsLogGroup, has been deprecated
- Cloudformation: child stacks never deleted if parent is gone. HOT 2
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.