Copy an S3 prefix to job attachments on Deadline Cloud
The
copy_s3_prefix_to_job_attachments
Because job attachments uses content-addressed storage and never
re-uploads files that are already in job attachments, you can use
alternative upload tools like
AWS Snowball
Submit the bundle and choose how many workers to parallelize across:
deadline bundle submit copy_s3_prefix_to_job_attachments \ -p S3CopySource=s3://SOURCE_BUCKET_NAME/prefix-to-copy\ -p Parallelism=20
Add the following IAM permissions to your queue IAM role. The role already has permissions to read and write the job attachments bucket prefix.
{ "Effect": "Allow", "Sid": "DeadlineQueueReadOnly", "Action": [ "deadline:GetQueue" ], "Resource": [ "arn:aws:deadline:REGION:ACCOUNT_ID:farm/FARM_ID/queue/QUEUE_ID" ] }, { "Effect": "Allow", "Sid": "SourceBucketAccess", "Action": [ "s3:ListBucket", "s3:GetObjectTagging", "s3:PutObjectTagging", "s3:GetObject" ], "Resource": [ "arn:aws:s3:::SOURCE_BUCKET_NAME", "arn:aws:s3:::SOURCE_BUCKET_NAME/*" ] }
This job calls Amazon S3 APIs and copies data into your queue's job
attachments bucket, which incurs additional costs. Use the
Amazon S3 pricing