Skip to content

Commit 13d84cc

Browse files
authored
[feat] Multi Party Approval Identity Source (aws-samples#34)
1 parent 3154b0c commit 13d84cc

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

template.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ Description: "DO NOT DELETE - AWS Organization"
99
Parameters:
1010
pInstanceArn:
1111
Type: String
12-
Description: AWS Identity Center Center Instance ARN
12+
Description: AWS Identity Center Instance ARN
13+
Default: ""
14+
pInstanceRegion:
15+
Type: String
16+
Description: AWS Identity Center Instance Region
1317
Default: ""
1418
pDeveloperPrefix:
1519
Type: String
@@ -74,6 +78,7 @@ Parameters:
7478
Conditions:
7579
cCreateNewAwsOrg: !Equals ["Yes", !Ref pCreateNewAwsOrg]
7680
cHasInstanceArn: !Not [!Equals [!Ref pInstanceArn, ""]]
81+
cHasInstanceRegion: !Not [!Equals [!Ref pInstanceRegion, ""]]
7782
cHasOrganizationId: !And
7883
- !Not [!Condition cCreateNewAwsOrg]
7984
- !Not [!Equals [!Ref pOrganizationId, ""]]
@@ -1136,6 +1141,18 @@ Resources:
11361141
- Key: "aws-cloudformation:logical-id"
11371142
Value: rSupportPermissionSet
11381143

1144+
rMultiPartyApprovalIdentitySource:
1145+
Type: "AWS::MPA::IdentitySource"
1146+
Condition: cHasInstanceArn
1147+
Properties:
1148+
IdentitySourceParameters:
1149+
IamIdentityCenter:
1150+
InstanceArn: !Ref pInstanceArn
1151+
Region: !If
1152+
- cHasInstanceRegion
1153+
- !Ref pInstanceRegion
1154+
- !Ref "AWS::Region"
1155+
11391156
Outputs:
11401157
oOrganizationId:
11411158
Description: Organization ID

0 commit comments

Comments
 (0)