-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(eks): policy does not exist or is not attachable in China and GovCloud regions #25215
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pahud are you sure that it is not possible to pull images from ECR public in china regions? From what I understand of ECR public it only exists in us-east-1 (which is why you have to run get-login-password from us-east-1). Could it be that the issue is just that the IAM managed policy doesn't exist in China? What if we just added a custom policy with the necessary permissions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Hello @pahud , We are still encountering below when using latest cdk version to create eks and corresponding resources like helm chart etc, and I tested cdk-2.65.0 which looks good, however, it's hard for us to use this cdk version considering other facts, so do we have a ETA or workaround for this issue? 2023-05-19 14:12:02 UTC+0800 HandlerServiceRoleFCDC14AE |
Reopening this PR because #25170 was closed by accident.
As ECR Public is not available in China regions and GovCloud,
AmazonElasticContainerRegistryPublicReadOnly
IAM managed policy would not be available in those affected regions and should not be attached to the role. This PR implements a CfnCondition to determine if ECR public is available based onAws.Partition
of the deploying region and conditionally attachAmazonElasticContainerRegistryPublicReadOnly
to the kubectl-provider handler role.This PR has been tested in the following regions:
The cluster and nodegroup are still failing to create in CN.
Closes #24743 #24808 #25178