- Newest
- Most votes
- Most comments
If you've created an IAM policy using the CLI but can't find it in the IAM console, there are a few things to check:
-
Refresh the IAM console: Sometimes, the console may not immediately reflect changes made via CLI. Try refreshing your browser or logging out and back in to the AWS Management Console.
-
Check the policy scope: Ensure you're looking in the correct section of the IAM console. Customer managed policies are listed separately from AWS managed policies. Look for a section labeled "Customer managed" or "Custom" policies.
-
Verify the AWS account: Make sure you're logged into the same AWS account in the console as the one you used when creating the policy via CLI.
-
Check for pagination: If you have many policies, the one you're looking for might not be on the first page. Use the search function or navigate through the pages to find your policy.
-
Wait a few minutes: There can sometimes be a slight delay in propagation of changes across AWS services. If you've just created the policy, wait a few minutes and try again.
-
Confirm the policy name: Double-check that the policy name in the console matches exactly what you specified in the CLI command ("launch.bots.ai" in this case).
If you've verified all these points and still can't see the policy, you may want to try listing the policies using the AWS CLI again to confirm it exists, and then compare the output with what you see in the console. If the discrepancy persists, you might want to contact AWS support for further assistance.
Sources
Create IAM policies (console) - AWS Identity and Access Management
AWS Identity and Access Management simplifies policy management
IAM tutorial: Create and attach your first customer managed policy - AWS Identity and Access Management
Relevant content
- Accepted Answerasked 5 months ago
- asked a year ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 3 months ago