Skip to content

Commit 34ba86f

Browse files
authored
chore(eks): set AWS_STS_REGIONAL_ENDPOINTS to regional for KubectlFunction (#30580)
### Issue # (if applicable) Per boto/botocore#2577 (comment) setting this to `regional` is still required and recommended for boto3. Closes #30496 ### Reason for this change ### Description of changes ### Description of how you validated changes Added a new unit test and verified with debugger. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ### Debugger ```json { "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "Jest", "program": "${workspaceFolder}/node_modules/jest/bin/jest.js", "cwd": "${workspaceFolder}/packages/aws-cdk-lib", "args": [ "--verbose", "-i", "--no-cache", "test/kubectl-provider.test.ts", ], "console": "integratedTerminal", "internalConsoleOptions": "neverOpen", "skipFiles": [ "<node_internals>/**" ], "outFiles": [ "${workspaceFolder}/**/*.(m|c|)js", "!**/node_modules/**" ], } ] } ``` ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent e02578f commit 34ba86f

File tree

150 files changed

+9114
-8899
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+9114
-8899
lines changed
Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.alb-controller.js.snapshot/aws-cdk-eks-cluster-alb-controller.assets.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.alb-controller.js.snapshot/aws-cdk-eks-cluster-alb-controller.template.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@
10561056
{
10571057
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
10581058
},
1059-
"/12013bd7d8559f6883e853e9624275cf3f32d86c166243ab85c46269c009b249.json"
1059+
"/8cef919709334806828263085b34beb96a356e0826668c03914f8899bbe0f04e.json"
10601060
]
10611061
]
10621062
}
@@ -1106,7 +1106,7 @@
11061106
{
11071107
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
11081108
},
1109-
"/9b57e71b3fd1cfcfdec66d3b197f9800f5ef70b999bb1e7b163e427671ecea0e.json"
1109+
"/6746b754b3db6762bc833cdc322e572da19c6b8c354197887eeab99e82edfe1c.json"
11101110
]
11111111
]
11121112
}

packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.alb-controller.js.snapshot/awscdkeksclusteralbcontrollerawscdkawseksClusterResourceProviderC3126E77.nested.template.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"S3Bucket": {
5151
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
5252
},
53-
"S3Key": "e360285e7bd78b792c3d120b19dff9840b2c1a235eba49ce3ab0105470358b6f.zip"
53+
"S3Key": "6b19297a97597a250e5e30435d2cc30a5558a154c4135bccb767b62181e6c86d.zip"
5454
},
5555
"Description": "onEvent handler for EKS cluster resource provider",
5656
"Environment": {
@@ -123,7 +123,7 @@
123123
"S3Bucket": {
124124
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
125125
},
126-
"S3Key": "e360285e7bd78b792c3d120b19dff9840b2c1a235eba49ce3ab0105470358b6f.zip"
126+
"S3Key": "6b19297a97597a250e5e30435d2cc30a5558a154c4135bccb767b62181e6c86d.zip"
127127
},
128128
"Description": "isComplete handler for EKS cluster resource provider",
129129
"Environment": {

packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.alb-controller.js.snapshot/awscdkeksclusteralbcontrollerawscdkawseksKubectlProvider935399DC.nested.template.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
"S3Key": "abc70c90ded969d12235ca11768293cb20557cff54518518480c0d9fb344a098.zip"
1111
},
1212
"Description": "onEvent handler for EKS kubectl resource provider",
13+
"Environment": {
14+
"Variables": {
15+
"AWS_STS_REGIONAL_ENDPOINTS": "regional"
16+
}
17+
},
1318
"Handler": "index.handler",
1419
"Layers": [
1520
{

packages/@aws-cdk-testing/framework-integ/test/aws-eks/test/integ.alb-controller.js.snapshot/manifest.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)