Copy
type: "io.kestra.plugin.aws.s3.Copy"
Copy a file between S3 bucket.
Examples
id: "copy"
type: "io.kestra.plugin.aws.s3.Copy"
accessKeyId: "<access-key>"
secretKeyId: "<secret-key>"
region: "eu-central-1"
from:
bucket: "my-bucket"
key: "path/to/file"
to:
bucket: "my-bucket2"
key: "path/to/file2"
Properties
accessKeyId
- Type: string
- Dynamic: ✔️
- Required: ❌
The Access Key Id in order to connect to AWS
If no connection is defined, we will use default DefaultCredentialsProvider that will try to guess the value
delete
- Type: boolean
- Dynamic: ❌
- Required: ❌
- Default:
false
Delete the source file after download
endpointOverride
- Type: string
- Dynamic: ✔️
- Required: ❌
The endpoint with which the SDK should communicate.
Should normally not be used except for local development.
from
- Type: CopyObjectFrom
- Dynamic: ❌
- Required: ❌
The source bucket and key
region
- Type: string
- Dynamic: ✔️
- Required: ❌
The region with which the SDK should communicate.
secretKeyId
- Type: string
- Dynamic: ✔️
- Required: ❌
The Secret Key Id in order to connect to AWS
If no connection is defined, we will use default DefaultCredentialsProvider that will try to guess the value
sessionToken
- Type: string
- Dynamic: ✔️
- Required: ❌
The he AWS session token, retrieved from an AWS token service, used for authenticating that this user has received temporary permission to access some resource.
If no connection is defined, we will use default DefaultCredentialsProvider that will try to guess the value
to
- Type: CopyObject
- Dynamic: ❌
- Required: ❌
The destination bucket and key.
Outputs
bucket
- Type: string
key
- Type: string
versionId
- Type: string
Version of the object.
Definitions
CopyObjectFrom
bucket
- Type: string
- Dynamic: ✔️
- Required: ❌
The bucket name
key
- Type: string
- Dynamic: ✔️
- Required: ❌
The bucket key
versionId
- Type: string
- Dynamic: ✔️
- Required: ❌
The specific version of the object.
CopyObject
bucket
- Type: string
- Dynamic: ✔️
- Required: ❌
The bucket name
key
- Type: string
- Dynamic: ✔️
- Required: ❌
The bucket key