Skip to content

Commit 6615433

Browse files
committed
fix: partitionalize arn in StepFunctionsExecutionPolicy (#941)
1 parent aa9c691 commit 6615433

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

samtranslator/policy_templates_data/policy_templates.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,7 @@
15791579
],
15801580
"Resource": {
15811581
"Fn::Sub": [
1582-
"arn:aws:states:${AWS::Region}:${AWS::AccountId}:stateMachine:${stateMachineName}",
1582+
"arn:${AWS::Partition}:states:${AWS::Region}:${AWS::AccountId}:stateMachine:${stateMachineName}",
15831583
{
15841584
"stateMachineName": {
15851585
"Ref": "StateMachineName"

tests/translator/output/all_policy_templates.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@
12271227
],
12281228
"Resource": {
12291229
"Fn::Sub": [
1230-
"arn:aws:states:${AWS::Region}:${AWS::AccountId}:stateMachine:${stateMachineName}",
1230+
"arn:${AWS::Partition}:states:${AWS::Region}:${AWS::AccountId}:stateMachine:${stateMachineName}",
12311231
{
12321232
"stateMachineName": "name"
12331233
}

tests/translator/output/aws-cn/all_policy_templates.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@
12261226
],
12271227
"Resource": {
12281228
"Fn::Sub": [
1229-
"arn:aws:states:${AWS::Region}:${AWS::AccountId}:stateMachine:${stateMachineName}",
1229+
"arn:${AWS::Partition}:states:${AWS::Region}:${AWS::AccountId}:stateMachine:${stateMachineName}",
12301230
{
12311231
"stateMachineName": "name"
12321232
}

tests/translator/output/aws-us-gov/all_policy_templates.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@
12271227
],
12281228
"Resource": {
12291229
"Fn::Sub": [
1230-
"arn:aws:states:${AWS::Region}:${AWS::AccountId}:stateMachine:${stateMachineName}",
1230+
"arn:${AWS::Partition}:states:${AWS::Region}:${AWS::AccountId}:stateMachine:${stateMachineName}",
12311231
{
12321232
"stateMachineName": "name"
12331233
}

0 commit comments

Comments
 (0)