Skip to content

Commit 0b529ea

Browse files
authored
[PCUI] Support PCUI in us-gov-east-1(OSU) region and other future GovCloud regions (#433)
* Support PCUI in us-gov-east-1(OSU) region and other future GovCloud regions * Fix the hardcode aws patition by using AWS::Partition
1 parent e833245 commit 0b529ea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

infrastructure/parallelcluster-ui-cognito.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Parameters:
2727
Default: ''
2828

2929
Conditions:
30-
GovCloud: !Equals [!Ref AWS::Region, 'us-gov-west-1']
30+
GovCloud: !Equals [!Ref 'AWS::Partition', 'aws-us-gov']
3131
UsePermissionBoundary: !Not [ !Equals [ !Ref PermissionsBoundaryPolicy, '' ] ]
3232
UseCustomDomain: !Not [!Equals [!Ref CustomDomain, '']]
3333

infrastructure/parallelcluster-ui.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Conditions:
162162
- !Not [!Equals [!Ref SNSRole, ""]]
163163
UseNewCognito:
164164
!Not [ Condition: UseExistingCognito]
165-
InGovCloud: !Equals ['us-gov-west-1', !Ref "AWS::Region"]
165+
InGovCloud: !Equals [!Ref 'AWS::Partition', 'aws-us-gov']
166166
UsePermissionBoundary: !Not [!Equals [!Ref PermissionsBoundaryPolicy, '']]
167167
UsePermissionBoundaryPCAPI: !Not [!Equals [!Ref PermissionsBoundaryPolicyPCAPI, '']]
168168
UseIAMRoleAndPolicyPrefix: !Not [!Equals [!Ref IAMRoleAndPolicyPrefix, '']]
@@ -517,7 +517,7 @@ Resources:
517517
Action:
518518
- 'sts:AssumeRole'
519519
ManagedPolicyArns:
520-
- 'arn:aws:iam::aws:policy/service-role/AmazonAPIGatewayPushToCloudWatchLogs'
520+
- 'arn:${AWS::Partition}:iam::aws:policy/service-role/AmazonAPIGatewayPushToCloudWatchLogs'
521521
PermissionsBoundary: !If [UsePermissionBoundary, !Ref PermissionsBoundaryPolicy, !Ref 'AWS::NoValue']
522522

523523
ApiGatewayAccessLog:

0 commit comments

Comments
 (0)