-
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
eks: policy does not exist or is not attachable in China regions #24743
Comments
PR underway. |
it also affects govcloud #24808. I'm not sure if I can downgrade CDK to work around the issue because the cluster is 1.25 and changelog says I need 2.69.0 for 1.25 support |
…Cloud regions (#25215) 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 on `Aws.Partition` of the deploying region and conditionally attach `AmazonElasticContainerRegistryPublicReadOnly` to the kubectl-provider handler role. This PR has been tested in the following regions: - [x] *cn-north-1 - [x] *cn-northwest-1 - [x] us-east-1 * I can confirm the role is created correctly in cn regions but due to - #24358 - #24696 The cluster and nodegroup are still failing to create in CN. Closes #24743 #24808 #25178
|
Describe the bug
When I deployed eks cluster to
cn-north-1
I got the error:Expected Behavior
successful deployment
Current Behavior
fail to deploy with the error message above.
Reproduction Steps
Possible Solution
ECR Public is not available in AWS China regions and the
AmazonElasticContainerRegistryPublicReadOnly
is not available. We probably should exclude it when deploying in China regions. And this brings up another issue - if the eks cluster in China is trying to helm install charts from ECR public, it should not run theaws ecr-public
commands like this:aws-cdk/packages/@aws-cdk/aws-eks/lib/kubectl-handler/helm/__init__.py
Line 115 in a51346e
We probably should fix that in a separate PR.
Additional Information/Context
No response
CDK CLI Version
2.69.0
Framework Version
No response
Node.js Version
v19.6.0
OS
mac os x
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: