Outbound AWS S3 Stage
The Outbound AWS S3 stage allows messages to be exported from the Integration Hub service to an external, AWS S3-based destination.
Stage Overview
The Outbound AWS S3 stage allows messages to be exported from the Integration Hub service to an external, AWS S3-based destination.
Stage Definition File Location
All Outbound AWS S3 stages are defined by creating an appropriately formatted JSON definition file in the following location:
Stage JSON Definition File Format
The JSON definition file for an Outbound AWS S3 stage is as follows:
{
"name": "stage-name",
"displayName": "Brief Stage Title",
"description": "Brief description of the stage.",
"enabled": "$env:STATUS_<INTEGRATION_NAME>",
"source": "source-event",
"concurrency": 10,
"bucketName": "$env:AWS_S3_BUCKETNAME",
"subDirectoryInBucket": "$env:AWS_S3_SUBDIRECTORY",
"awsAccessKeyId": "$env:AWS_S3_KEYID",
"awsSecretAccessKey": "$env:AWS_S3_SECRETKEY",
"emitEvent": "previous-stage-name-1",
"leaseLockName": "lock-name",
"preLogTransformSchemaFileName": "schemas/path/to/schema/schema-name.liquid",
"preLogTransformSchemaType": "liquid|javascript",
"preLogTransformFormat": "json|xml|csv"
}
| Property | Description |
|---|---|
name | The name of the stage. |
displayName | Optional (but highly recommended). A short (3 or 4 word) "display name" for the stage, used as a "title" of the stage in the Integration Hub Portal service's self-documentation capability. |
description | Optional (but highly recommended). A brief (10 to 15 word) description of the stage, used as a brief description of the stage's purpose in the Integration Hub Portal service's self-documentation capability. For a more detailed explanation (when needed), use the stage markdown feature. |
enabled | Optional boolean flag (true or false). Default is true.Generally set via a DevOps variable. Controls if the stage is deployed enabled or not. |
source | The source event that the stage subscribes to. See Pub/Sub Model. Alternatively, sources may be supplied, and an array of one or more source events can be subscribed to. |
concurrency | Optional number of concurrent runs permitted for the stage. Default is 10. |
bucketName | The name of the AWS S3 bucket that the message will be exported to. |
subDirectoryInBucket | Optional name of a sub-directory in the AWS S3 bucket to upload the message into. If not supplied, the message will be uploaded into the root of the AWS S3 bucket. |
awsAccessKeyId | The AWS S3 bucket access key ID value. |
awsSecretAccessKey | The AWS S3 bucket secret access key value. |
emitEvent | When the upload to the AWS S3 bucket is successful, the stage will normally terminate. However, under certain circumstances, it may be desirable to continue workflow processing. The optional emitEvent flag allows the payload of a previously run stage to be output as a message from this stage. The stage must have previously been executed in the run history of the overall Integration Hub integration, with the stage's exported payload details being present in the Cloud Event Attributes section. |
leaseLockName | Optional. See Lease Locking. |
Pre-Logging Transformation
This stage supports the optional pre-logging transformation feature using the following fields:
preLogTransformSchemaFileNamepreLogTransformSchemaTypepreLogTransformFormat
See the Pre-Logging Transformation for details.
Payload and Filename
The stage uploads the source payload blob to AWS S3. It does not use a schema file or require a JSON payload containing the filename and file content.
The S3 object filename is taken from the final segment of the incoming BlobPath, which is based on the Run ID of the previous stage. Any stage-specific suffix is retained.
Last updated on