Use the following policy to submit jobs to any job queue with any job definition name that
starts with JobDefA
.
Important
When scoping resource-level access for job submission, you must provide both job queue and job definition resource types.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"batch:SubmitJob"
],
"Resource": [
"arn:aws:batch:<aws_region>
:<aws_account_id>
:job-definition/JobDefA_*",
"arn:aws:batch:<aws_region>
:<aws_account_id>
:job-queue/*"
]
}
]
}