Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Getting multiple - AccessDeniedException: No default admin could be found for account xxx #992

Closed
marnixhoh opened this issue May 3, 2023 · 1 comment

Comments

@marnixhoh
Copy link

I am running aws-nuke on an AWS account using a shared profile, with the AdministratorAccess managed policy. My config looks like:

regions:
- ap-northeast-1
- ap-northeast-2
- ap-northeast-3
- ap-south-1
- ap-southeast-1
- ap-southeast-2
- ca-central-1
- eu-central-1
- eu-north-1
- eu-west-1
- eu-west-2
- eu-west-3
- sa-east-1
- us-east-1
- us-east-2
- us-west-1
- us-west-2

account-blocklist:
- "xxx"
- "xxx"

accounts:
  "xxx": {}

And the aws-nuke command is:
aws-nuke -c ~/Desktop/aws-nuke.yml --profile staging --no-dry-run

I get multiple AccessDeniedException errors. One of them is:

ERRO[0295] Listing FMSNotificationChannel failed:
    AccessDeniedException: No default admin could be found for account xxx
    	status code: 400, request id: xxx 

Is this somehow expected behavior? Or is something going wrong? Given that the shared profile has AdministratorAccess, I would not expect to run into AccessDeniedException errors.

I looked through other issues here on Github and Google and I was not able to find any similar sort of errors.

Thank you so much for any help! :)

@der-eismann
Copy link
Member

Fixed with #1083

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants