Puts FlowFiles to an Amazon S3 Bucket. The upload uses either the PutS3Object method or the PutS3MultipartUpload method. The PutS3Object method sends the file in a single synchronous call, but it has a 5GB size limit. Larger files are sent using the PutS3MultipartUpload method. This multipart process saves state after each step so that a large upload can be resumed with minimal loss if the processor or cluster is stopped and restarted. A multipart upload consists of three steps: 1) initiate upload, 2) upload the parts, and 3) complete the upload. For multipart uploads, the processor saves state locally tracking the upload ID and parts uploaded, which must both be provided to complete the upload. The AWS libraries select an endpoint URL based on the AWS region, but this can be overridden with the 'Endpoint Override URL' property for use with other S3-compatible endpoints. The S3 API specifies that the maximum file size for a PutS3Object upload is 5GB. It also requires that parts in a multipart upload must be at least 5MB in size, except for the last part. These limits establish the bounds for the Multipart Upload Threshold and Part Size properties.
Amazon, S3, AWS, Archive, Put
In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.
Display Name | API Name | Default Value | Allowable Values | Description |
---|---|---|---|---|
Object Key | Object Key | ${filename} | The S3 Object Key to use. This is analogous to a filename for traditional file systems. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) | |
Bucket | Bucket | The S3 Bucket to interact with Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) | ||
Content Type | Content Type | Sets the Content-Type HTTP header indicating the type of content stored in the associated object. The value of this header is a standard MIME type.
AWS S3 Java client will attempt to determine the correct content type if one hasn't been set yet. Users are responsible for ensuring a suitable content type is set when uploading streams. If no content type is provided and cannot be determined by the filename, the default content type "application/octet-stream" will be used. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) | ||
Content Disposition | Content Disposition |
| Sets the Content-Disposition HTTP header indicating if the content is intended to be displayed inline or should be downloaded. Possible values are 'inline' or 'attachment'. If this property is not specified, object's content-disposition will be set to filename. When 'attachment' is selected, '; filename=' plus object key are automatically appended to form final value 'attachment; filename="filename.jpg"'. | |
Cache Control | Cache Control | Sets the Cache-Control HTTP header indicating the caching directives of the associated object. Multiple directives are comma-separated. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) | ||
Access Key ID | Access Key | No Description Provided. Sensitive Property: true Supports Expression Language: true (will be evaluated using variable registry only) | ||
Secret Access Key | Secret Key | No Description Provided. Sensitive Property: true Supports Expression Language: true (will be evaluated using variable registry only) | ||
Credentials File | Credentials File | Path to a file containing AWS access key and secret key in properties file format. This property requires exactly one file to be provided.. | ||
AWS Credentials Provider Service | AWS Credentials Provider service | Controller Service API: AWSCredentialsProviderService Implementation: AWSCredentialsProviderControllerService | The Controller Service that is used to obtain AWS credentials provider | |
Object Tags Prefix | s3-object-tags-prefix | Specifies the prefix which would be scanned against the incoming FlowFile's attributes and the matching attribute's name and value would be considered as the outgoing S3 object's Tag name and Tag value respectively. For Ex: If the incoming FlowFile carries the attributes tagS3country, tagS3PII, the tag prefix to be specified would be 'tagS3' Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) | ||
Remove Tag Prefix | s3-object-remove-tags-prefix | False |
| If set to 'True', the value provided for 'Object Tags Prefix' will be removed from the attribute(s) and then considered as the Tag name. For ex: If the incoming FlowFile carries the attributes tagS3country, tagS3PII and the prefix is set to 'tagS3' then the corresponding tag values would be 'country' and 'PII' |
Storage Class | Storage Class | Standard |
| No Description Provided. |
Region | Region | US West (Oregon) |
| The AWS Region to connect to. |
Communications Timeout | Communications Timeout | 30 secs | The amount of time to wait in order to establish a connection to AWS or receive data from AWS before timing out. | |
Expiration Time Rule | Expiration Time Rule | No Description Provided. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) | ||
FullControl User List | FullControl User List | ${s3.permissions.full.users} | A comma-separated list of Amazon User ID's or E-mail addresses that specifies who should have Full Control for an object Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) | |
Read Permission User List | Read Permission User List | ${s3.permissions.read.users} | A comma-separated list of Amazon User ID's or E-mail addresses that specifies who should have Read Access for an object Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) | |
Write Permission User List | Write Permission User List | ${s3.permissions.write.users} | A comma-separated list of Amazon User ID's or E-mail addresses that specifies who should have Write Access for an object Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) | |
Read ACL User List | Read ACL User List | ${s3.permissions.readacl.users} | A comma-separated list of Amazon User ID's or E-mail addresses that specifies who should have permissions to read the Access Control List for an object Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) | |
Write ACL User List | Write ACL User List | ${s3.permissions.writeacl.users} | A comma-separated list of Amazon User ID's or E-mail addresses that specifies who should have permissions to change the Access Control List for an object Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) | |
Owner | Owner | ${s3.owner} | The Amazon ID to use for the object's owner Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) | |
Canned ACL | canned-acl | ${s3.permissions.cannedacl} | Amazon Canned ACL for an object, one of: BucketOwnerFullControl, BucketOwnerRead, LogDeliveryWrite, AuthenticatedRead, PublicReadWrite, PublicRead, Private; will be ignored if any other ACL/permission/owner property is specified Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) | |
SSL Context Service | SSL Context Service | Controller Service API: SSLContextService Implementations: StandardSSLContextService StandardRestrictedSSLContextService | Specifies an optional SSL Context Service that, if provided, will be used to create connections | |
Endpoint Override URL | Endpoint Override URL | Endpoint URL to use instead of the AWS default including scheme, host, port, and path. The AWS libraries select an endpoint URL based on the AWS region, but this property overrides the selected endpoint URL, allowing use with other S3-compatible endpoints. Supports Expression Language: true (will be evaluated using variable registry only) | ||
Signer Override | Signer Override | Default Signature |
| The AWS S3 library uses Signature Version 4 by default but this property allows you to specify the Version 2 signer to support older S3-compatible services or even to plug in your own custom signer implementation. |
Custom Signer Class Name | custom-signer-class-name | Fully qualified class name of the custom signer class. The signer must implement com.amazonaws.auth.Signer interface. Supports Expression Language: true (will be evaluated using variable registry only) This Property is only considered if the [Signer Override] Property has a value of "Custom Signature". | ||
Custom Signer Module Location | custom-signer-module-location | Comma-separated list of paths to files and/or directories which contain the custom signer's JAR file and its dependencies (if any). This property expects a comma-separated list of resources. Each of the resources may be of any of the following types: file, directory. Supports Expression Language: true (will be evaluated using variable registry only) This Property is only considered if the [Signer Override] Property has a value of "Custom Signature". | ||
Multipart Threshold | Multipart Threshold | 5 GB | Specifies the file size threshold for switch from the PutS3Object API to the PutS3MultipartUpload API. Flow files bigger than this limit will be sent using the stateful multipart process. The valid range is 50MB to 5GB. | |
Multipart Part Size | Multipart Part Size | 5 GB | Specifies the part size for use when the PutS3Multipart Upload API is used. Flow files will be broken into chunks of this size for the upload process, but the last part sent can be smaller since it is not padded. The valid range is 50MB to 5GB. | |
Multipart Upload AgeOff Interval | Multipart Upload AgeOff Interval | 60 min | Specifies the interval at which existing multipart uploads in AWS S3 will be evaluated for ageoff. When processor is triggered it will initiate the ageoff evaluation if this interval has been exceeded. | |
Multipart Upload Max Age Threshold | Multipart Upload Max Age Threshold | 7 days | Specifies the maximum age for existing multipart uploads in AWS S3. When the ageoff process occurs, any upload older than this threshold will be aborted. | |
Temporary Directory Multipart State | s3-temporary-directory-multipart | ${java.io.tmpdir} | Directory in which, for multipart uploads, the processor will locally save the state tracking the upload ID and parts uploaded which must both be provided to complete the upload. Supports Expression Language: true (will be evaluated using variable registry only) | |
Server Side Encryption | server-side-encryption | None |
| Specifies the algorithm used for server side encryption. |
Encryption Service | encryption-service | Controller Service API: AmazonS3EncryptionService Implementation: StandardS3EncryptionService | Specifies the Encryption Service Controller used to configure requests. PutS3Object: For backward compatibility, this value is ignored when 'Server Side Encryption' is set. FetchS3Object: Only needs to be configured in case of Server-side Customer Key, Client-side KMS and Client-side Customer Key encryptions. | |
Use Chunked Encoding | use-chunked-encoding | true |
| Enables / disables chunked encoding for upload requests. Set it to false only if your endpoint does not support chunked uploading. |
Use Path Style Access | use-path-style-access | false |
| Path-style access can be enforced by setting this property to true. Set it to true if your endpoint does not support virtual-hosted-style requests, only path-style requests. |
Proxy Configuration Service | proxy-configuration-service | Controller Service API: ProxyConfigurationService Implementation: StandardProxyConfigurationService | Specifies the Proxy Configuration Controller Service to proxy network requests. If set, it supersedes proxy settings configured per component. Supported proxies: HTTP + AuthN | |
Proxy Host | Proxy Host | Proxy host name or IP Supports Expression Language: true (will be evaluated using variable registry only) | ||
Proxy Host Port | Proxy Host Port | Proxy host port Supports Expression Language: true (will be evaluated using variable registry only) | ||
Proxy Username | proxy-user-name | Proxy username Supports Expression Language: true (undefined scope) | ||
Proxy Password | proxy-user-password | Proxy password Sensitive Property: true Supports Expression Language: true (undefined scope) |
Supports Sensitive Dynamic Properties: No
Dynamic Properties allow the user to specify both the name and value of a property.
Name | Value | Description |
---|---|---|
The name of a User-Defined Metadata field to add to the S3 Object | The value of a User-Defined Metadata field to add to the S3 Object | Allows user-defined metadata to be added to the S3 object as key/value pairs Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) |
Name | Description |
---|---|
success | FlowFiles are routed to success relationship |
failure | FlowFiles are routed to failure relationship |
Name | Description |
---|---|
filename | Uses the FlowFile's filename as the filename for the S3 object |
Name | Description |
---|---|
s3.bucket | The S3 bucket where the Object was put in S3 |
s3.key | The S3 key within where the Object was put in S3 |
s3.contenttype | The S3 content type of the S3 Object that put in S3 |
s3.version | The version of the S3 Object that was put to S3 |
s3.exception | The class name of the exception thrown during processor execution |
s3.additionalDetails | The S3 supplied detail from the failed operation |
s3.statusCode | The HTTP error code (if available) from the failed operation |
s3.errorCode | The S3 moniker of the failed operation |
s3.errorMessage | The S3 exception message from the failed operation |
s3.etag | The ETag of the S3 Object |
s3.contentdisposition | The content disposition of the S3 Object that put in S3 |
s3.cachecontrol | The cache-control header of the S3 Object |
s3.uploadId | The uploadId used to upload the Object to S3 |
s3.expiration | A human-readable form of the expiration date of the S3 object, if one is set |
s3.sseAlgorithm | The server side encryption algorithm of the object |
s3.usermetadata | A human-readable form of the User Metadata of the S3 object, if any was set |
s3.encryptionStrategy | The name of the encryption strategy, if any was set |
FetchS3Object, DeleteS3Object, ListS3, CopyS3Object, GetS3ObjectMetadata, TagS3Object