crew_definition_aws_batch {crew.aws.batch} | R Documentation |
Create an AWS Batch job definition object.
Description
Create an R6
object to manage a job definition for AWS
Batch jobs.
Usage
crew_definition_aws_batch(
job_queue,
job_definition = paste0("crew-aws-batch-job-definition-", crew::crew_random_name()),
log_group = "/aws/batch/job",
config = NULL,
credentials = NULL,
endpoint = NULL,
region = NULL
)
Arguments
job_queue |
Character of length 1, name of the AWS Batch job queue. |
job_definition |
Character of length 1, name of the AWS Batch
job definition. The job definition might or might not exist
at the time |
log_group |
Character of length 1,
AWS Batch CloudWatch log group to get job logs.
The default log group is often |
config |
Optional named list, |
credentials |
Optional named list. |
endpoint |
Optional character of length 1. |
region |
Character of length 1. |
Value
An R6
job definition object.
IAM policies
In order for the AWS Batch crew
job definition class to function
properly, your IAM policy needs permission to perform the
RegisterJobDefinition
, DeregisterJobDefinition
, and
DescribeJobDefinitions
AWS Batch API calls.
For more information on AWS policies and permissions, please visit
https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html.
See Also
Other definition:
crew_class_definition_aws_batch