|
78 | 78 | "StateMachineWithLiteralCredentialsBF5A67AE": { |
79 | 79 | "Type": "AWS::StepFunctions::StateMachine", |
80 | 80 | "Properties": { |
81 | | - "RoleArn": { |
82 | | - "Fn::GetAtt": [ |
83 | | - "StateMachineWithLiteralCredentialsRole1F1DEEC1", |
84 | | - "Arn" |
85 | | - ] |
86 | | - }, |
87 | 81 | "DefinitionString": { |
88 | 82 | "Fn::Join": [ |
89 | 83 | "", |
|
98 | 92 | "\"},\"Resource\":\"arn:aws:states:::dynamodb:putItem\",\"Parameters\":{\"TableName\":\"my-cool-table\",\"Item\":{\"id\":{\"S\":\"my-entry\"}}}}},\"TimeoutSeconds\":30}" |
99 | 93 | ] |
100 | 94 | ] |
| 95 | + }, |
| 96 | + "RoleArn": { |
| 97 | + "Fn::GetAtt": [ |
| 98 | + "StateMachineWithLiteralCredentialsRole1F1DEEC1", |
| 99 | + "Arn" |
| 100 | + ] |
101 | 101 | } |
102 | 102 | }, |
103 | 103 | "DependsOn": [ |
|
148 | 148 | "StateMachineWithCrossAccountLiteralCredentialsA2DD713D": { |
149 | 149 | "Type": "AWS::StepFunctions::StateMachine", |
150 | 150 | "Properties": { |
| 151 | + "DefinitionString": "{\"StartAt\":\"FakeTaskWithCrossAccountLiteralCredentials\",\"States\":{\"FakeTaskWithCrossAccountLiteralCredentials\":{\"End\":true,\"Type\":\"Task\",\"Credentials\":{\"RoleArn\":\"arn:aws:iam::123456789012:role/CrossAccountRole\"},\"Resource\":\"arn:aws:states:::dynamodb:putItem\",\"Parameters\":{\"TableName\":\"my-cool-table\",\"Item\":{\"id\":{\"S\":\"my-entry\"}}}}},\"TimeoutSeconds\":30}", |
151 | 152 | "RoleArn": { |
152 | 153 | "Fn::GetAtt": [ |
153 | 154 | "StateMachineWithCrossAccountLiteralCredentialsRole4AA04DBC", |
154 | 155 | "Arn" |
155 | 156 | ] |
156 | | - }, |
157 | | - "DefinitionString": "{\"StartAt\":\"FakeTaskWithCrossAccountLiteralCredentials\",\"States\":{\"FakeTaskWithCrossAccountLiteralCredentials\":{\"End\":true,\"Type\":\"Task\",\"Credentials\":{\"RoleArn\":\"arn:aws:iam::123456789012:role/CrossAccountRole\"},\"Resource\":\"arn:aws:states:::dynamodb:putItem\",\"Parameters\":{\"TableName\":\"my-cool-table\",\"Item\":{\"id\":{\"S\":\"my-entry\"}}}}},\"TimeoutSeconds\":30}" |
| 157 | + } |
158 | 158 | }, |
159 | 159 | "DependsOn": [ |
160 | 160 | "StateMachineWithCrossAccountLiteralCredentialsRoleDefaultPolicy9B9943BD", |
|
204 | 204 | "StateMachineWithJsonPathCredentials5786712E": { |
205 | 205 | "Type": "AWS::StepFunctions::StateMachine", |
206 | 206 | "Properties": { |
| 207 | + "DefinitionString": "{\"StartAt\":\"FakeTaskWithJsonPathCredentials\",\"States\":{\"FakeTaskWithJsonPathCredentials\":{\"End\":true,\"Type\":\"Task\",\"Credentials\":{\"RoleArn.$\":\"$.RoleArn\"},\"Resource\":\"arn:aws:states:::dynamodb:putItem\",\"Parameters\":{\"TableName\":\"my-cool-table\",\"Item\":{\"id\":{\"S\":\"my-entry\"}}}}},\"TimeoutSeconds\":30}", |
207 | 208 | "RoleArn": { |
208 | 209 | "Fn::GetAtt": [ |
209 | 210 | "StateMachineWithJsonPathCredentialsRole7BDE9FA6", |
210 | 211 | "Arn" |
211 | 212 | ] |
212 | | - }, |
213 | | - "DefinitionString": "{\"StartAt\":\"FakeTaskWithJsonPathCredentials\",\"States\":{\"FakeTaskWithJsonPathCredentials\":{\"End\":true,\"Type\":\"Task\",\"Credentials\":{\"RoleArn.$\":\"$.RoleArn\"},\"Resource\":\"arn:aws:states:::dynamodb:putItem\",\"Parameters\":{\"TableName\":\"my-cool-table\",\"Item\":{\"id\":{\"S\":\"my-entry\"}}}}},\"TimeoutSeconds\":30}" |
| 213 | + } |
214 | 214 | }, |
215 | 215 | "DependsOn": [ |
216 | 216 | "StateMachineWithJsonPathCredentialsRoleDefaultPolicy1DA1C50B", |
217 | 217 | "StateMachineWithJsonPathCredentialsRole7BDE9FA6" |
218 | 218 | ], |
219 | 219 | "UpdateReplacePolicy": "Delete", |
220 | 220 | "DeletionPolicy": "Delete" |
| 221 | + }, |
| 222 | + "StateMachineWithJSONataCredentialsRole97AD3731": { |
| 223 | + "Type": "AWS::IAM::Role", |
| 224 | + "Properties": { |
| 225 | + "AssumeRolePolicyDocument": { |
| 226 | + "Statement": [ |
| 227 | + { |
| 228 | + "Action": "sts:AssumeRole", |
| 229 | + "Effect": "Allow", |
| 230 | + "Principal": { |
| 231 | + "Service": "states.amazonaws.com" |
| 232 | + } |
| 233 | + } |
| 234 | + ], |
| 235 | + "Version": "2012-10-17" |
| 236 | + } |
| 237 | + } |
| 238 | + }, |
| 239 | + "StateMachineWithJSONataCredentialsRoleDefaultPolicyF552EED1": { |
| 240 | + "Type": "AWS::IAM::Policy", |
| 241 | + "Properties": { |
| 242 | + "PolicyDocument": { |
| 243 | + "Statement": [ |
| 244 | + { |
| 245 | + "Action": "sts:AssumeRole", |
| 246 | + "Effect": "Allow", |
| 247 | + "Resource": "*" |
| 248 | + } |
| 249 | + ], |
| 250 | + "Version": "2012-10-17" |
| 251 | + }, |
| 252 | + "PolicyName": "StateMachineWithJSONataCredentialsRoleDefaultPolicyF552EED1", |
| 253 | + "Roles": [ |
| 254 | + { |
| 255 | + "Ref": "StateMachineWithJSONataCredentialsRole97AD3731" |
| 256 | + } |
| 257 | + ] |
| 258 | + } |
| 259 | + }, |
| 260 | + "StateMachineWithJSONataCredentialsA18E2D6C": { |
| 261 | + "Type": "AWS::StepFunctions::StateMachine", |
| 262 | + "Properties": { |
| 263 | + "DefinitionString": "{\"StartAt\":\"FakeTaskWithJSONataCredentials\",\"States\":{\"FakeTaskWithJSONataCredentials\":{\"End\":true,\"Type\":\"Task\",\"Arguments\":{\"TableName\":\"my-cool-table\",\"Item\":{\"id\":{\"S\":\"my-entry\"}}},\"Credentials\":{\"RoleArn\":\"{% $states.input.RoleArn %}\"},\"Resource\":\"arn:aws:states:::dynamodb:putItem\"}},\"TimeoutSeconds\":30,\"QueryLanguage\":\"JSONata\"}", |
| 264 | + "RoleArn": { |
| 265 | + "Fn::GetAtt": [ |
| 266 | + "StateMachineWithJSONataCredentialsRole97AD3731", |
| 267 | + "Arn" |
| 268 | + ] |
| 269 | + } |
| 270 | + }, |
| 271 | + "DependsOn": [ |
| 272 | + "StateMachineWithJSONataCredentialsRoleDefaultPolicyF552EED1", |
| 273 | + "StateMachineWithJSONataCredentialsRole97AD3731" |
| 274 | + ], |
| 275 | + "UpdateReplacePolicy": "Delete", |
| 276 | + "DeletionPolicy": "Delete" |
221 | 277 | } |
222 | 278 | }, |
223 | 279 | "Parameters": { |
|
0 commit comments