- Newest
- Most votes
- Most comments
The "Unable to determine opt-in region status" error you're encountering with the PutCoreNetworkPolicy operation suggests there might be an issue with region validation in your AWS environment.
Here are some additional things to check:
-
Region Opt-in Status: Even though us-east-1 is typically enabled by default, there might be an issue with the service's ability to verify the region's opt-in status. The error indicates that the AWS Global Networks service is unable to determine if the region you're using is properly opted-in for your account.
-
IAM Permissions: While you've granted admin permissions, ensure that the role specifically has permissions for the account management API actions related to region opt-in status checking. The role might need explicit permissions to call the GetRegionOptStatus API.
-
Cross-Account Issues: Check if there are any cross-account configurations involved. The error could occur if the service is trying to validate region status across accounts and doesn't have proper permissions.
-
Service Availability: Verify that AWS Network Manager service is fully available in your region and account. There might be temporary service issues.
-
CLI/SDK Version: Ensure you're using the latest version of the AWS CLI or SDK, as older versions might have bugs related to region validation.
-
AWS Organizations Policies: If your account is part of an AWS Organization, check if there are any service control policies (SCPs) that might be restricting access to region-related operations.
-
Try CloudShell: As an alternative approach, try running the same command in AWS CloudShell to see if the environment makes a difference.
If the issue persists after checking these items, it might be worth contacting AWS Support as this could be related to an underlying service issue with region validation in the Network Manager service.
Sources
PutCoreNetworkPolicy - AWS Global Networks for Transit Gateways
GetRegionOptStatus - AWS Account Management
CreateCoreNetwork - AWS Global Networks for Transit Gateways
