This component provides integration capabilities for Amazon Simple Storage Service (Amazon S3), enabling you to interact with S3 buckets and objects through a standardized interface.
This component enables interaction with Amazon Simple Storage Service (Amazon S3) object storage. It supports common S3 operations including reading, writing, deleting, and renaming files, as well as listing bucket contents and polling for new or updated objects.
The component simplifies integration with Amazon S3 by providing a unified interface for common storage operations, file management, and object monitoring tasks without requiring direct AWS SDK implementation.
The component is based on AWS S3 SDK version 3.947.0.
| Name | Mandatory | Description | Values |
|---|---|---|---|
ATTACHMENT_MAX_SIZE |
false | For elastic.io attachments configuration. Maximum possible attachment size in bytes. By default set to 104857600 and according to platform limitations CAN’T be bigger than that. |
Up to 104857600 bytes (100MB) |
ACCESS_KEY_ID |
false | This variable is required for integration-tests | |
ACCESS_KEY_SECRET |
false | This variable is required for integration-tests | |
REGION |
false | This variable is required for integration-tests |
Please Note: From the platform version 20.51 we deprecated the component
LOG_LEVELenvironment variable. Now you can control logging level per each step of the flow.
Access keys consist of three parts: an access key ID, a secret access key, and a region. Like a user name and password, you must use both the access key ID and secret access key together to authenticate your requests.
According to AWS documentation, for buckets created in Regions launched after March 20, 2019, Region is required for AWS credentials.
AKIAIOSFODNN7EXAMPLE).wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY).ca-central-1).https://s3.eu-central-003.backblazeb2.com.Polls S3 for all new and updated objects since the last polling. Results can be emitted individually or as an array.
Emit Individually) – Choose how objects are emitted:
Emit Individually – Emits each object in a separate message (default).Fetch All – Emits all objects as an array in one object with key results.-271821-04-20T00:00:00.000Z.+275760-09-13T00:00:00.000Z.3600 (1 hour), Max: 604800 (7 days).The output structure depends on the selected Emit Behaviour:
results containing an array of objects, each following the schema below.attachmentUrl or preSignedUrl appears only if Enable File Attachments is selected. preSignedUrl is used when Use Pre-signed URLs is enabled, otherwise attachmentUrl is used.
{
"type": "object",
"properties": {
"attachmentUrl": {
"type": "string",
"required": false
},
"preSignedUrl": {
"type": "string",
"required": false
},
"Key": {
"type": "string",
"required": true
},
"LastModified": {
"type": "string",
"required": true
},
"ETag": {
"type": "string",
"required": true
},
"Size": {
"type": "number",
"required": true
},
"StorageClass": {
"type": "string",
"required": true
},
"Owner": {
"type": "object",
"properties": {
"ID": {
"type": "string",
"required": true
}
}
}
}
}
Given a filename and a URL to an attachment stored in the platform, transfers the contents of the attachment to AWS S3. The component returns a summary of the written file. AWS S3 always overwrites the contents of the file if it already exists.
None.
/ characters in the filename to create folders.Returns a summary object with the following properties:
standard storage class.Reads a file from an S3 bucket. The result is stored in the output body (for JSON or XML) or in the output attachment (for other types). File type is resolved by its extension. The name of the attachment will be the same as the filename.
Pre-signed URLs: When enabled, generates pre-signed URLs instead of attachments. This allows working with files of any size without the 100MB attachment limit. URLs expire after the specified time (default: 1 hour, max: 7 days).
bucketName is not provided in metadata).3600 (1 hour), Max: 604800 (7 days).Default Bucket Name and folder if provided).{
"type": "object",
"properties": {
"filename": {
"type": "string",
"required": true
},
"bucketName": {
"type": "string",
"required": false
}
}
}
{
"type": "object",
"properties": {
"filename": {
"type": "string",
"required": true
},
"attachmentUrl": {
"type": "string",
"required": false
},
"preSignedUrl": {
"type": "string",
"required": false
},
"size": {
"type": "number",
"required": true
}
}
}
Retrieves all filenames from an S3 bucket and emits them individually. This action gets all names of files which are stored in the S3 bucket with the provided name.
Notice: If you provide bucket and folder (as an example eio-dev/inbound), not only all names of files will be returned but the name of the root folder (inbound/) as well.
bucketName is not provided in metadata).Default Bucket Name and folder if provided).{
"type": "object",
"properties": {
"bucketName": {
"type": "string",
"required": false
}
}
}
{
"type": "object",
"properties": {
"ETag": {
"type": "string",
"required": true
},
"Location": {
"type": "string",
"required": false
},
"Key": {
"type": "string",
"required": true
},
"Bucket": {
"type": "string",
"required": true
}
}
}
A maximum of 1000 file names can be retrieved.
Removes a file from an S3 bucket by the provided name in the selected bucket. The action will emit the single filename of the removed file.
bucketName is not provided).Default Bucket Name and folder if provided).{
"type": "object",
"properties": {
"filename": {
"type": "string",
"required": true
},
"bucketName": {
"type": "string",
"required": false
}
}
}
{
"type": "object",
"properties": {
"filename": {
"type": "string",
"required": true
}
}
}
Renames a file in an S3 bucket and folder. The action will emit properties of the renamed file.
None.
{
"type": "object",
"properties": {
"bucketName": {
"title":"Bucket Name",
"type": "string",
"required": true
},
"folder": {
"type": "string",
"required": false
},
"oldFileName": {
"type": "string",
"required": true
},
"newFileName": {
"type": "string",
"required": true
}
}
}
{
"type": "object",
"properties": {
"Key": {
"type": "string",
"required": true
},
"LastModified": {
"type": "string",
"required": true
},
"ETag": {
"type": "string",
"required": true
},
"Size": {
"type": "number",
"required": true
},
"StorageClass": {
"type": "string",
"required": true
},
"Owner": {
"type": "object",
"required": true,
"properties": {
"ID": {
"type": "string",
"required": true
}
}
}
}
}
The following actions are deprecated and should not be used in new integrations. They are maintained for backward compatibility with existing flows.
This action is deprecated. Please use Write File to S3 From a Provided Attachment instead. Put stream as file into S3 bucket. This action creates or rewrites a new file on S3 with the content that is passed as an input attachment. The name of the file would be the same to the attachment name. Be careful: this action can process only one attachment - if it would be more or no attachment at all the execution would fail with exception.
bucketName is not provided in metadata);Default Bucket Name and folder if provided, the field is optional).{
"type": "object",
"properties": {
"filename": {
"type": "string",
"required": false
},
"bucketName": {
"type": "string",
"required": false
}
}
}
{
"type": "object",
"properties": {
"ETag": {
"type": "string",
"required": true
},
"Location": {
"type": "string",
"required": false
},
"Key": {
"type": "string",
"required": true
},
"Bucket": {
"type": "string",
"required": true
}
}
}
Action is deprecated. Use the CSV & or Batch component to create a csv file first, then write that file to S3.
Click here to learn more about the elastic.io iPaaS