fix: also filter 404 and unauthorized (#60)

Signed-off-by: matttrach <matt.trachier@suse.com>
This commit is contained in:
Matt Trachier 2024-04-17 17:00:58 -05:00 committed by GitHub
parent 3fdbbf7662
commit e393cf40ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ jobs:
run: |
for region in us-west-1 us-west-2 us-east-1 us-east-2; do
echo "leftovers in $region:"
response="$(leftovers -d --iaas=aws --aws-region="$region" --filter="Owner:terraform-ci" | grep -v 'AccessDenied')"
response="$(leftovers -d --iaas=aws --aws-region="$region" --filter="Owner:terraform-ci" | grep -v 'AccessDenied' | grep -v 'status code: 403' | grep -v 'UnauthorizedOperation')"
if [ -n "$response" ]; then
echo "found leftovers: "
echo "$response"