- Newest
- Most votes
- Most comments
The issue you're experiencing with the "AccessDenied" error when trying to interact with an OpenID Connect (OIDC) provider in your new AWS account, despite having AdministratorAccess policy, is unusual and requires further investigation.
Given that you've already verified the AdministratorAccess policy is correctly attached to your user and confirmed the correct user is being used, the problem might be related to one of the following:
-
Time delay: In some cases, there can be a slight delay between when permissions are granted and when they become fully effective across all AWS services. Although this is typically a matter of minutes, you might want to wait a bit longer and try again.
-
OIDC provider not created: If the OIDC provider hasn't been created yet in your account, attempting to access it will result in an AccessDenied error. Ensure that the OIDC provider has been properly created before trying to interact with it.
-
Region mismatch: Verify that you're operating in the correct AWS region where the OIDC provider was created.
-
Account limits: New AWS accounts sometimes have certain limitations or restrictions that are gradually lifted over time. While this typically doesn't affect IAM operations, it's worth considering.
-
Service-linked role: Ensure that the necessary service-linked role for IAM OIDC operations exists in your account. This role is usually created automatically, but in rare cases, it might not be present.
To troubleshoot further:
-
Try creating a new OIDC provider manually using the AWS Management Console or AWS CLI to see if you encounter the same error.
-
Check your AWS account's health dashboard for any ongoing issues that might affect IAM or OIDC operations.
-
If possible, test with another administrator user in the same account to determine if the issue is specific to your user or affects all users.
-
Review the IAM Access Analyzer findings for any potential issues related to your OIDC provider or IAM permissions.
If the problem persists after trying these steps, it would be advisable to contact AWS Support for further assistance. They can provide more detailed insights into your specific account configuration and any potential restrictions or issues that might be causing this unexpected behavior.
Sources
Create an OpenID Connect (OIDC) identity provider in IAM - AWS Identity and Access Management
AddClientIDToOpenIDConnectProvider - AWS Identity and Access Management
get-open-id-connect-provider — AWS CLI 2.18.5 Command Reference
answered 2 years ago
Relevant content
asked 3 years ago
asked 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
