Comments (4)
This is not currently supported. Adding support for nuking resources with specific tags (for resources that support tags) makes sense, and a PR for that is welcome.
As for supporting nuking resources with specific IDs, that seems like a more esoteric use case. cloud-nuke
is not a Terraform-specific tool, so I'm not a fan of building something into it to track IDs specific to Terraform functionality. Moreover, I'm not certain the approach would work in the general case. For example, to delete some resources, you must first delete all dependent resources: e.g., to delete a VPC, you must remove subnets; to remove subnets, you must remove attached security groups; and so on. So if you passed in the ID of just a VPC, would we automatically clean up the attached subnets and security groups, or only if you passed in the IDs for ALL of those? The former goes against the "delete only these IDs" concept, but the latter seems practically very hard to do, and unlikely to be used.
from cloud-nuke.
@brikis98 - Those are great points regarding the resource ID list, and I have to agree with you that the dependency-hierarchy problem would be a significant challenge.
Per your feedback, I may look deeper into adding the tag-filter option (for those resources that support tags) - unless of course someone else picks this up first
from cloud-nuke.
I noticed that tag-based exclusions are now becoming a thing (#103) - perhaps this would ease the way for tag-filtering as well... (?)
from cloud-nuke.
FYI - I've kicked off a PR to hopefully start to making progress on this: #109
Feedback and contributions welcome. :)
from cloud-nuke.
Related Issues (20)
- SecretsManager Secret removal failure
- S3 buckets are n't getting cleaned up and access points are n't deleted while nuking s3 bucket
- Endpoint services and vpc peering connections are n't getting deleted while nuking VPC and load balancer
- Msk cluster is currently not supported by cloud nuke HOT 1
- ACM certificates are n't supported by cloud nuke HOT 1
- Backup vault is n't supported by cloud nuke HOT 1
- SES service is n't supported by cloud nuke HOT 1
- Support CodeDeploy Applications
- cloud-nuke v0.30.0 fails to compile HOT 2
- Use cloud-nuke as library to delete resources HOT 2
- In config how to exclude some resource only on specific region? HOT 2
- Querying for global resources in library mode uses the default AWS Session instead of the externalcreds configuration
- Not able to nuke eks cluster HOT 3
- Cloud-Nuke does not delete multiple CloudWatch Composite Alarms propperly
- Cloud nuke does n't support cleaning IAM policies by using config.yaml HOT 2
- Support Deleting DB Subnet Groups for RDS
- Circle CI Test Pipeline Broken HOT 2
- Is it possible to exclude specific cluster like we have exclude-region? HOT 4
- Support deleting resources within default VPC
- aw transit-gateway-attachment should check nukable before describing HOT 1
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 cloud-nuke.