-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
AWS Nuke Stalls wirh 2000+ resources #453
Comments
I changed my config file to only include the 'Global' region and It doesn't appear I get this error anymore, Is this intended? |
I added my existing regions back into the config file and got similar errors. I updated my regions to 'all' for additional testing and aws nuke stalls with this output: "time="2024-12-10T01:17:38Z" level=debug msg="skipping request: service 'route53' is global, but the session is not" |
This is a debug statement, it's not an error and is expected and is not the root cause of anything. We need to identify which resource it's stuck querying. Do you have any sense of what resource you have the most of? |
Is there a debug option to see which AWS API is being called? That way to can confirm what it's stalling against. |
Can you run with log level trace and send me the output up until it stalls or at least the couple hundred lines before it stalls. |
I don't think so at the moment, that would be good to add. Trace level might give us extra. |
Thanks, I'll try this out, however the gitlab hosted runners only provide 4mb of log memory and the trace log outputs considerably more. Also because the command is stalling the gitlab runner is timing out I dont think I can redirect stdout into a file and produce a gitlab artifact. So I may not be able to provide this. |
It might be easier to debug this outside of GitLab runner but I'm pretty familiar with GitLab runners. When im back in front of a computer I'll look at what can be done. |
Thanks, just to confirm i'm using gitlab SAAS runners :) Also just to give a better idea of my use case im trying to do the following. We have sandpits accounts that we manually create resources in that need to be nuked. We want to use gitlab scheduled pipelines to periodically run aws nuke against the accounts. |
I've been doing more testing and I believe that aws-nuke benefit from more output / progress updates during execution. Without this it makes it extremely difficult to determine if aws nuke has stalled or it just working in the background. For example, I ran aws nuke locally with the log level set to trace. This was the last output I got and then I receive no other outputs for 10+ minutes so I'm not sure if aws nuke is working in the background or has stopped working
|
Agreed. |
Try https://github.com/ekristen/aws-nuke/releases/tag/v3.35.2 with |
Thanks! I've tested it and it's heaps better |
ok, let me know where it stalls at. :) |
I completed my testing, I think I was originally stalling on the large amount of cloudwatch log groups. Your updated binary file fixed that and after more testing AWS Nuke has not stalled :) I think adding the additionally logs really helped because it showed me that nuke was still running and hadn't stalled. I'm think that adding more output to the normal log level would be beneficial, because if you are a new user and are nuking a large AWS account you can have periods of 1+ hour with no output from aws nuke which makes people think that something has gone wrong, when in reality it's working in the background and just taking a long time. What are you thoughts? :) Thanks for you support! We can close this issues now. |
Great news! Thanks for the feedback. I'll see what I can do to put more feedback in the tool. It's tough to duplicate some of these edge cases. |
I'm using a AWS Nuke within a Gitlab CI pipeline to nuke an aws account with 2000+ resources. I have tested this with the latest docker image (aws-nuke:v3.35.1) and using the binary supplied in issue 'Nuke stalls #426'
Stall Screenshot:
AWS Config:
`regions:
accounts:
11111111111:
resource-types:
excludes:
- FMSNotificationChannel # Excluded because it's not available
- FMSPolicy # Excluded because it's not available
- MachineLearningMLModel # Excluded due to ML being unavailable
- MachineLearningDataSource # Excluded due to ML being unavailable
- MachineLearningBranchPrediction # Excluded due to ML being unavailable
- MachineLearningEvaluation # Excluded due to ML being unavailable
- QuickSightUser # Excluded as it make AWS Nuke Stall
- ElasticTranscoderPreset # Deprecated Service
- ElasticTranscoderPipeline # Deprecated Service
- RoboMakerDeploymentJob # Deprecated Service
- RoboMakerFleet # Deprecated Service
- RoboMakerRobot # Deprecated Service
- RoboMakerSimulationJob
- RoboMakerRobotApplication
- RoboMakerSimulationApplication
- OpsWorksApp # Deprecated service
- OpsWorksInstance # Deprecated service
- OpsWorksLayer # Deprecated service
- OpsWorksUserProfile # Deprecated service
- OpsWorksCMBackup # Deprecated service
- OpsWorksCMServer # Deprecated service
- OpsWorksCMServerState # Deprecated service
- CodeStarProject # Deprecated service
- CodeStarConnection # Deprecated service
- CodeStarNotification # Deprecated service
- Cloud9Environment # Deprecated service
- CloudSearchDomain # Deprecated service
- RedshiftServerlessSnapshot # Deprecated service
- RedshiftServerlessNamespace # Deprecated service
- RedshiftServerlessWorkgroup # Deprecated service
- S3Object
- ELBv2ListenerRule
- CloudWatchLogsLogGroup
- S3Bucket
- S3MultipartUpload
- BudgetsBudget
- CloudWatchAlarm `
The text was updated successfully, but these errors were encountered: