Skip to main content

S3Write

Description

Enables you to write content to a specific file in an Amazon S3 bucket.

info
  • Ensure that you have a properly configured Amazon Web Services (S3) connection resource set up under the Resources folder.
  • S3 file names are case-sensitive; therefore, abc.JPG, abc.jpg, and ABC.jpg will be saved as different files. To ensure consistency, we recommend using lower-case file names and extensions: abc.jpg.

Configuration

FieldRequiredDescriptionExample
NameRequiredThe name of the activity. This name must be unique in a workflow.Hourly Web Analytics Output
DescriptionOptionalThe description of the activity. We recommend you make this as clear as possible to guide execution, foster understanding, and support collaboration.Writes the aggregated hourly web analytics data to S3.
ResourceRequiredA predefined resource for accessing S3 buckets./Resources/S3 Resources/S3Connection
Bucket NameRequiredThe name of the S3 bucket where the file will be written.website-analytics-output
File PathRequired

The path within the specified S3 bucket where the file will be written. This can include a directory structure.

Note

While entering the file path, only list the virtual directories without adding the bucket name, because the it is already specified (see Bucket Name, above).

For example, consider the following complete path:

web-analytics-output/hourly/2025/05/01/.

In this complete path:

  • web-analytics-output is the bucket that contains the files that you want to list.
  • hourly/2025/05/01 is the path to the file.
File NameRequired

The exact name of the file to be written, including its desired extension.

Note: This field is case-sensitive and must precisely match the file name in S3.

sensor_reading_1682860800.csv.zip

hourly_analytics_0900.json.zip
Encryption TypeOptionalSpecifies the type of server-side encryption to apply when writing the file to S3.PGP
Content TypeOptionalSpecifies the MIME type of the content being written to the file. This helps S3 and downstream applications understand the file format.JSON
Compression TypeOptionalSpecifies the type of compression to apply to the content before writing it to the file in S3.ZIP
Create Directory if Not ExistsOptionalInstructs the application to create the specified File Path (directories) in the S3 bucket if it does not already exist before writing the file. If unchecked (False), and if the path does not exist, the write operation might fail depending on the underlying S3 behavior and the writing method used.True
OverwriteOptional

If selected (True) and a file with the specified File Path and File Name already exists in the S3 bucket, the system will overwrite the existing file with the new content.

If unchecked (False), and the file exists, the write operation might fail or behave in an undefined manner depending on the underlying S3 API and the writing method.

False
AppendOptionalIf checked (True) and a file with the specified File Path and File Name already exists, the new content will be added to the end of the existing file. If unchecked (False), the behavior will depend on whether "Overwrite" is checked. This option is typically useful for logging or accumulating data over time within a single file.True
Write New LineOptional

This option is relevant when the "Append" option is checked or when writing plain text files.

If checked (True), the system will automatically add a newline character (\n) to the end of the content being written.

This ensures that subsequent appends start on a new line, making the file more readable, especially for log files or line-delimited data.

True

S3Write Configuration

Input

FieldRequiredData TypeDescriptionExample
filepathOptionalStringThe path to the bucket (without the bucket name) that contains the file to which you want to write.hourly/2025/05/01
fileNameOptionalString

The name of the file to which you want to write.

Note: This field is case-sensitive and must precisely match the file name in S3.

hourly_analytics_0900.json.zip
createDirectoryOptionalBooleanInstructs the application to create the file path in destination bucket if it doesn't exist.true
contentOptionalStringThe content that you want written into the destination file.NA

Output

FieldRequiredData TypeDescriptionExample
schemaOptionalNAA custom schema that can be imported.NA
contentLengthRequiredNumberThe size of the written file, in Bytes.10292
fileNameRequiredStringThe name of the file to which you have written.hourly_analytics_0900.json.zip
pathRequiredStringThe path to the bucket (without the bucket name) that contains the file to which you've written.hourly/2025/05/01