-
Notifications
You must be signed in to change notification settings - Fork 4.5k
iam: SamlConsolePrincipal does not work in aws.amazon.com-regions #24243
Copy link
Copy link
Closed
Labels
@aws-cdk/aws-iamRelated to AWS Identity and Access ManagementRelated to AWS Identity and Access ManagementbugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp0
Description
Describe the bug
With #24034 the default SAML:aud changed from aws.amazon.com to "Ref": "AWS::URLSuffix" which is resolves to amazonaws.com.
Expected Behavior
When not in china, it should resolves to aws.amazon.com.
Current Behavior
it is "Ref": "AWS::URLSuffix", which resolves to amazonaws.com.
Reproduction Steps
install 2.65.0
create an iam.SamlConsolePrincipal
Possible Solution
StringEquals: {
- 'SAML:aud': cdk.Aws.PARTITION==='aws-cn'? 'https://signin.amazonaws.cn/saml': `https://signin.${cdk.Aws.URL_SUFFIX}/saml`,
+ 'SAML:aud': cdk.Aws.PARTITION==='aws-cn'? 'https://signin.amazonaws.cn/saml': `https://signin.aws.amazon.com/saml`,
},Additional Information/Context
No response
CDK CLI Version
2.65.0
Framework Version
No response
Node.js Version
OS
Language
Python
Language Version
No response
Other information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-iamRelated to AWS Identity and Access ManagementRelated to AWS Identity and Access ManagementbugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortp0