-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(iam): service principals use unnecessary exceptions (under featur…
…e flag) (#22819) We have a database of service principal exceptions in different regions. This database is no longer necessary: all services now use the global service principal name for in-region references, and sometimes a standardized regional service principal name for cross-opt-in-region references. This PR changes the following things: ```ts new ServicePrincipal('service.amazonaws.com') // ➡️ always resolves to 'service.amazonaws.com', regardless of region // or service principal new ServicePrincipal('service.amazonaws.com', { region: 'me-south-1' }) // ➡️ resolves to 'service.me-south-1.amazonaws.com' in case of a // cross-region reference, or just 'service.amazonaws.com' otherwise. ``` Because change is scary (and because we are only 99% sure that this change has made it to all ADC regions), we put the new behavior behind a feature flag: ```json { "context": { "@aws-cdk/aws-iam:standardizedServicePrincipals": true } } ``` ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information
Showing
391 changed files
with
4,297 additions
and
9,244 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
.../test/integ.stepfunctions-api.js.snapshot/StepFunctionsRestApiDeploymentStack.assets.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/@aws-cdk/aws-apigateway/test/integ.stepfunctions-api.js.snapshot/cdk.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"version":"20.0.0"} | ||
{"version":"21.0.0"} |
5 changes: 3 additions & 2 deletions
5
packages/@aws-cdk/aws-apigateway/test/integ.stepfunctions-api.js.snapshot/integ.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
{ | ||
"version": "20.0.0", | ||
"version": "21.0.0", | ||
"testCases": { | ||
"step-functions-restapi/DefaultTest": { | ||
"stacks": [ | ||
"StepFunctionsRestApiDeploymentStack" | ||
], | ||
"assertionStack": "step-functions-restapi/DefaultTest/DeployAssert" | ||
"assertionStack": "step-functions-restapi/DefaultTest/DeployAssert", | ||
"assertionStackName": "stepfunctionsrestapiDefaultTestDeployAssert53C3797F" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...functions-api.js.snapshot/stepfunctionsrestapiDefaultTestDeployAssert53C3797F.assets.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...ges/@aws-cdk/aws-appsync/test/integ.auth-apikey.js.snapshot/aws-appsync-integ.assets.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/@aws-cdk/aws-appsync/test/integ.auth-apikey.js.snapshot/cdk.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"version":"20.0.0"} | ||
{"version":"21.0.0"} |
2 changes: 1 addition & 1 deletion
2
packages/@aws-cdk/aws-appsync/test/integ.auth-apikey.js.snapshot/integ.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version": "20.0.0", | ||
"version": "21.0.0", | ||
"testCases": { | ||
"integ.auth-apikey": { | ||
"stacks": [ | ||
|
Oops, something went wrong.