-
Notifications
You must be signed in to change notification settings - Fork 4k
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
aws-eks : ALB controller IAM policies created in China using wrong partition #23642
Comments
Thanks for your report. Which aws region were you deploying to? |
I think either cn-north-1 or cn-northwest-1 for China partition is not work for the default IAM policy, as the policy document is come from this line
And all these version policy documents are come from ALB ingress repo for this file, they are all for global partition not for GOV or China partitions. There have another policy document in the repo is for the China partition. |
Same issue for #22520 |
For me this happened in cn-northwest-1, But like @zorrofox said, this has to do with the use of the wrong partition in the alb policy. Taking a quick look at https://github.com/aws/aws-cdk/search?q=arn%3Aaws%3Aec2%3A*%3A*%3Asecurity-group%2F* shows that nothing is done to check the partition in the |
Can we just use the commercial partition policy files to substitute with China or GOV partitions? Or we just like commercial partition to host all the policy files for China and GOV partitions? |
Describe the bug
When using the CDK to create a EKS cluster and specifying the use of alb controller, upon the creation of the IAM policy for alb controller the following error arises:
A quick search for
"arn:aws:ec2:*:*:security-group/*"
in the repo shows a few pages where this is used.Expected Behavior
A EKS cluster should be successfully created when using CDK to create in China
Current Behavior
Reproduction Steps
Try to create a EKS cluster in China with the ALB controller enabled:
Possible Solution
Check if the region is in China, and if so change the partition to aws-cn
Additional Information/Context
No response
CDK CLI Version
2.37.1
Framework Version
No response
Node.js Version
15
OS
Linux
Language
Python
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: