zalando-stups / fullstop-cli

Simple command line utility to view and resolve fullstop. violations
https://pypi.python.org/pypi/stups-fullstop/
Other
3 stars 5 forks source link

resolve-violations: continue on error (e.g. access denied) #31

Closed hjacobs closed 7 years ago

hjacobs commented 7 years ago

Continue in case of "Forbidden" (no access to account).

This allows me to do:


$ fullstop resolve -t WRONG_AMI 'Kubernetes cluster running CoreOS' --since 120d --limit 9999
Resolving violation 123869552723/eu-central-1 WRONG_AMI 3814746.. OK
Resolving violation 123214547328/eu-central-1 WRONG_AMI 3848202.. EXCEPTION OCCURRED: 403 Client Error: Forbidden for url: https://fullstop.example.org/api/violations/3848202/resolution
Resolving violation 123214547328/eu-central-1 WRONG_AMI 3848167.. EXCEPTION OCCURRED: 403 Client Error: Forbidden for url: https://fullstop.example.org/api/violations/3848167/resolution
Resolving violation 123214547328/eu-central-1 WRONG_AMI 3848159.. EXCEPTION OCCURRED: 403 Client Error: Forbidden for url: https://fullstop.example.org/api/violations/3848159/resolution
Resolving violation 123214547328/eu-central-1 WRONG_AMI 3848147.. EXCEPTION OCCURRED: 403 Client Error: Forbidden for url: https://fullstop.example.org/api/violations/3848147/resolution
hjacobs commented 7 years ago

:+1:

harti2006 commented 7 years ago

:+1: