Skip to content

Commit d1e1ab1

Browse files
authored
IT-4497 fix in-line policy (#1434)
IT-4497 ImportValue fails in in-line JSON policy
1 parent c728b3f commit d1e1ab1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

org-formation/700-aws-sso/_tasks.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,9 @@ SsoDeveloper:
435435
- 'arn:aws:iam::aws:policy/AWSBillingReadOnlyAccess'
436436
- 'arn:aws:iam::aws:policy/AmazonBedrockFullAccess'
437437
sessionDuration: 'PT12H'
438-
inlinePolicy: >-
439-
{
438+
inlinePolicy:
439+
Fn::Sub:
440+
- {
440441
"Version": "2012-10-17",
441442
"Statement": [
442443
{
@@ -445,14 +446,13 @@ SsoDeveloper:
445446
"Resource": "*",
446447
"Condition": {
447448
"StringNotEquals": {
448-
"aws:PrincipalArn": {
449-
"Fn::ImportValue": "us-east-1-synapsellmprod-bedrock-full-access-ServiceRoleArn"
450-
}
449+
"aws:PrincipalArn": "${AllowedRole}"
451450
}
452451
}
453452
}
454453
]
455-
}
454+
}
455+
- AllowedRole: '!ImportValue us-east-1-synapsellmprod-bedrock-full-access-ServiceRoleArn'
456456

457457
SsoFinanceAuditor:
458458
Type: update-stacks

0 commit comments

Comments
 (0)