- Newest
- Most votes
- Most comments
I understand you're facing a challenging situation with your IAM account alias. Based on the information you've provided, it appears that you're experiencing an inconsistency between the backend state and the visible state of your account alias. This can sometimes occur due to interrupted processes or synchronization issues.
Here are a few steps you can try to resolve this issue:
-
Double-check the list-account-aliases command: Ensure you're running the command correctly:
aws iam list-account-aliases
If it's still returning an empty list, this confirms the discrepancy between the backend and visible state. -
Attempt to delete the alias: Even though the alias isn't visible, try running the delete command:
aws iam delete-account-alias --account-alias tpiac
This might help clear the backend state if it exists. -
Wait and retry: Although you mentioned waiting for several hours, sometimes these inconsistencies can take longer to resolve. Wait for 24 hours and try creating the alias again.
-
Check permissions: Ensure that your IAM user or role has the necessary permissions to manage account aliases, including
iam:CreateAccountAlias
,iam:DeleteAccountAlias
, andiam:ListAccountAliases
. -
Use a different region: Try running your AWS CLI commands from a different region to see if it's a regional caching issue.
If none of these steps resolve the issue, you're correct that this might require intervention from AWS support. Unfortunately, without a higher support plan, your options for direct AWS assistance are limited. You might consider:
- Posting on the AWS Developer Forums for community assistance.
- Temporarily upgrading your support plan to get direct AWS support, then downgrading after the issue is resolved.
- If this is a critical blocker for your business, you might need to consider creating a new AWS account to bypass this issue, though this should be a last resort.
I apologize that I can't provide a definitive solution to your problem. This seems to be an edge case that might require direct intervention from AWS support team.
Sources
Deleting an account alias - AWS Identity and Access Management
list-account-aliases ā AWS CLI 2.26.6 Command Reference
The account alias must be unique across all Amazon Web Services products within a given network partition.
A partition is a group of AWS Regions. Each AWS account is scoped to one partition.
The following are the supported partitions:
- aws - AWS Regions
- aws-cn - China Regions
- aws-us-gov - AWS GovCloud (US) Regions
https://docs.aws.amazon.com/IAM/latest/UserGuide/console-account-alias.html
Relevant content
- asked 3 months ago
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
Thanks for your advice but none are working and I already try them (also today so it is more than 24 hours). I think I have no other way than going for official support and pay to remove this phantom resource alias...