Commit 2e7d786
committed
feat(stepfunctions-tasks): scope down batch:SubmitJob permissions to specific job definition
Previously, SubmitBatchJob granted batch:SubmitJob on all job
definitions (job-definition/*). Now the permission is scoped to the
specific job definition ARN with a wildcard revision suffix, following
least privilege principles.
When the job definition ARN is a dynamic expression (JsonPath/Jsonata),
it falls back to the wildcard resource.
Closes #372141 parent 08b9280 commit 2e7d786
File tree
1 file changed
+9
-8
lines changed- packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/batch
1 file changed
+9
-8
lines changedLines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
310 | 318 | | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | 319 | | |
315 | 320 | | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
| 321 | + | |
321 | 322 | | |
322 | 323 | | |
323 | 324 | | |
| |||
0 commit comments