Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cloudformation/ad/ad-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ Resources:
- Action: sts:AssumeRole
Effect: Allow
Principal:
Service: !Sub ec2.${AWS::URLSuffix}
Service: ec2.amazonaws.com
Version: "2012-10-17"
ManagedPolicyArns:
- !Sub arn:${AWS::Partition}:iam::aws:policy/AmazonSSMManagedInstanceCore
Expand Down
4 changes: 2 additions & 2 deletions cloudformation/proxy/proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Resources:
- Action: sts:AssumeRole
Effect: Allow
Principal:
Service: !Sub ec2.${AWS::URLSuffix}
Service: ec2.amazonaws.com
Version: 2012-10-17
ManagedPolicyArns:
- !Sub arn:${AWS::Partition}:iam::aws:policy/AmazonSSMManagedInstanceCore
Expand All @@ -189,7 +189,7 @@ Resources:
- Action: sts:AssumeRole
Effect: Allow
Principal:
Service: !Sub ec2.${AWS::URLSuffix}
Service: ec2.amazonaws.com
Version: 2012-10-17
ManagedPolicyArns:
- !Sub arn:${AWS::Partition}:iam::aws:policy/AmazonSSMManagedInstanceCore
Expand Down
8 changes: 4 additions & 4 deletions tests/iam_policies/cluster-roles.cfn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Resources:
- Action: sts:AssumeRole
Effect: Allow
Principal:
Service: !Sub ec2.${AWS::URLSuffix}
Service: !If [ GovCloud, 'ec2.amazonaws-us-gov.com', !If [ China, 'ec2.amazonaws.cn', 'ec2.amazonaws.com']]
Version: '2012-10-17'
Path: /parallelcluster/
ManagedPolicyArns:
Expand Down Expand Up @@ -105,7 +105,7 @@ Resources:
Condition:
StringEquals:
iam:PassedToService:
- !Sub ec2.${AWS::URLSuffix}
- !If [ GovCloud, 'ec2.amazonaws-us-gov.com', !If [ China, 'ec2.amazonaws.cn', 'ec2.amazonaws.com']]
- Action:
- ec2:DescribeInstances
- ec2:DescribeInstanceStatus
Expand Down Expand Up @@ -147,7 +147,7 @@ Resources:
- Action: sts:AssumeRole
Effect: Allow
Principal:
Service: !Sub ec2.${AWS::URLSuffix}
Service: !If [ GovCloud, 'ec2.amazonaws-us-gov.com', !If [ China, 'ec2.amazonaws.cn', 'ec2.amazonaws.com']]
Version: '2012-10-17'
Path: /parallelcluster/
ManagedPolicyArns:
Expand Down Expand Up @@ -235,7 +235,7 @@ Resources:
- Action: sts:AssumeRole
Effect: Allow
Principal:
Service: !Sub ec2.${AWS::URLSuffix}
Service: !If [ GovCloud, 'ec2.amazonaws-us-gov.com', !If [ China, 'ec2.amazonaws.cn', 'ec2.amazonaws.com']]
Version: '2012-10-17'
Path: /parallelcluster/
ManagedPolicyArns:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Resources:
- Action: sts:AssumeRole
Effect: Allow
Principal:
Service: !Sub ec2.${AWS::URLSuffix}
Service: ec2.amazonaws.com
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not applying the same approach we did for the other template?

Service: !If [ GovCloud, 'ec2.amazonaws-us-gov.com', !If [ China, 'ec2.amazonaws.cn', 'ec2.amazonaws.com']]

Copy link
Contributor Author

@himani2411 himani2411 Aug 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was something that I reverted so i prefer to revert to the original value that was existing instead of changing it now and re-testing it again in isolated regions.

I have already created a backlog task for deep diving on why we should keep the SP at all especially in isolated regions.

Version: "2012-10-17"
ManagedPolicyArns:
- !Sub arn:${AWS::Partition}:iam::aws:policy/AmazonSSMManagedInstanceCore
Expand Down
Loading