|
4 | 4 | "aft_account_provisioning_framework_validate": { |
5 | 5 | "Next": "aft_account_provisioning_framework_get_account_info", |
6 | 6 | "Type": "Task", |
7 | | - "Resource": "arn:aws:states:::lambda:invoke", |
| 7 | + "Resource": "arn:${current_partition}:states:::lambda:invoke", |
8 | 8 | "ResultPath": "$.validated", |
9 | 9 | "ResultSelector": {"Success.$":"$.Payload"}, |
10 | 10 | "Parameters": { |
|
25 | 25 | "aft_account_provisioning_framework_get_account_info": { |
26 | 26 | "Next": "aft_account_provisioning_framework_persist_metadata", |
27 | 27 | "Type": "Task", |
28 | | - "Resource": "arn:aws:states:::lambda:invoke", |
| 28 | + "Resource": "arn:${current_partition}:states:::lambda:invoke", |
29 | 29 | "ResultPath": "$.account_info", |
30 | 30 | "ResultSelector": {"account.$":"$.Payload"}, |
31 | 31 | "Parameters": { |
|
46 | 46 | "aft_account_provisioning_framework_persist_metadata": { |
47 | 47 | "Next": "aft_account_provisioning_framework_create_role", |
48 | 48 | "Type": "Task", |
49 | | - "Resource": "arn:aws:states:::lambda:invoke", |
| 49 | + "Resource": "arn:${current_partition}:states:::lambda:invoke", |
50 | 50 | "ResultPath": "$.persist_metadata", |
51 | 51 | "ResultSelector": {"StatusCode.$":"$.StatusCode"}, |
52 | 52 | "Parameters": { |
|
67 | 67 | "aft_account_provisioning_framework_create_role": { |
68 | 68 | "Next": "aft_account_provisioning_framework_tag_account", |
69 | 69 | "Type": "Task", |
70 | | - "Resource": "arn:aws:states:::lambda:invoke", |
| 70 | + "Resource": "arn:${current_partition}:states:::lambda:invoke", |
71 | 71 | "ResultPath": "$.role", |
72 | 72 | "ResultSelector": {"Arn.$":"$.Payload"}, |
73 | 73 | "Parameters": { |
|
96 | 96 | "aft_account_provisioning_framework_tag_account": { |
97 | 97 | "Next": "aft_account_provisioning_framework_account_metadata_ssm", |
98 | 98 | "Type": "Task", |
99 | | - "Resource": "arn:aws:states:::lambda:invoke", |
| 99 | + "Resource": "arn:${current_partition}:states:::lambda:invoke", |
100 | 100 | "ResultPath": "$.account_tags", |
101 | 101 | "ResultSelector": {"StatusCode.$":"$.StatusCode"}, |
102 | 102 | "Parameters": { |
|
118 | 118 | "aft_account_provisioning_framework_account_metadata_ssm": { |
119 | 119 | "Next": "aft_account_provisioning_framework_aft_features", |
120 | 120 | "Type": "Task", |
121 | | - "Resource": "arn:aws:states:::lambda:invoke", |
| 121 | + "Resource": "arn:${current_partition}:states:::lambda:invoke", |
122 | 122 | "ResultPath": "$.account_metadata_ssm", |
123 | 123 | "ResultSelector": {"StatusCode.$":"$.StatusCode"}, |
124 | 124 | "Parameters": { |
|
140 | 140 | "aft_account_provisioning_framework_aft_features": { |
141 | 141 | "Next": "aft_account_provisioning_customizations", |
142 | 142 | "Type": "Task", |
143 | | - "Resource": "arn:aws:states:::states:startExecution.sync:2", |
| 143 | + "Resource": "arn:${current_partition}:states:::states:startExecution.sync:2", |
144 | 144 | "Parameters": { |
145 | 145 | "StateMachineArn": "${aft_account_provisioning_framework_aft_features_state_machine_arn}", |
146 | 146 | "Input.$": "$" |
|
149 | 149 | "aft_account_provisioning_customizations": { |
150 | 150 | "Next": "run_create_pipeline?", |
151 | 151 | "Type": "Task", |
152 | | - "Resource": "arn:aws:states:::states:startExecution.sync:2", |
| 152 | + "Resource": "arn:${current_partition}:states:::states:startExecution.sync:2", |
153 | 153 | "Parameters": { |
154 | 154 | "StateMachineArn": "${aft_account_provisioning_customizations_state_machine_arn}", |
155 | 155 | "Input.$": "$.Input" |
|
175 | 175 | "aft_account_provisioning_framework_create_pipeline": { |
176 | 176 | "Next": "aft_account_provisioning_framework_notify_success", |
177 | 177 | "Type": "Task", |
178 | | - "Resource": "arn:aws:states:::codebuild:startBuild.sync", |
| 178 | + "Resource": "arn:${current_partition}:states:::codebuild:startBuild.sync", |
179 | 179 | "Parameters": { |
180 | 180 | "ProjectName": "aft-create-pipeline", |
181 | 181 | "EnvironmentVariablesOverride": [ |
|
201 | 201 | }, |
202 | 202 | "aft_account_provisioning_framework_notify_success": { |
203 | 203 | "Type": "Task", |
204 | | - "Resource": "arn:aws:states:::sns:publish", |
| 204 | + "Resource": "arn:${current_partition}:states:::sns:publish", |
205 | 205 | "Parameters": { |
206 | 206 | "TopicArn": "${aft_notification_arn}", |
207 | 207 | "Message.$": "$" |
|
210 | 210 | }, |
211 | 211 | "aft_account_provisioning_framework_notify_error": { |
212 | 212 | "Type": "Task", |
213 | | - "Resource": "arn:aws:states:::sns:publish", |
| 213 | + "Resource": "arn:${current_partition}:states:::sns:publish", |
214 | 214 | "Parameters": { |
215 | 215 | "TopicArn": "${aft_failure_notification_arn}", |
216 | 216 | "Message.$": "$.Cause" |
|
0 commit comments