Skip to content

Instantly share code, notes, and snippets.

@coingraham
Created January 6, 2022 15:30
Show Gist options
  • Save coingraham/1c9b794ed60470ac759b83d8ddca9e21 to your computer and use it in GitHub Desktop.
Save coingraham/1c9b794ed60470ac759b83d8ddca9e21 to your computer and use it in GitHub Desktop.
State Functions S3 Copy SDK Task
{
"Comment": "A description of my state machine",
"StartAt": "CopyObject",
"States": {
"CopyObject": {
"Type": "Task",
"End": true,
"Parameters": {
"ServerSideEncryption": "AES256",
"Bucket.$": "$.destination_bucket",
"CopySource.$": "$.source_path",
"Key.$": "$.key"
},
"Resource": "arn:aws:states:::aws-sdk:s3:copyObject"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment