Amazon S3
An Amazon S3 Remote Server connects Files.com to one bucket in its AWS region using IAM access keys or STS role assumption. Files.com can provide access to that bucket through a mounted folder or transfer files to another location. Choose the arrangement using the mounted access and separate-copy comparison.
The AWS administrator grants an identity access to the bucket and paths needed by the workflow. That administrator also controls storage classes and versioning settings, which determine which objects Files.com can read and what remains recoverable after deletion or replacement. Those settings need to fit the workflow's read, write, and recovery requirements.
Region and Bucket
Select Amazon S3 when adding a Remote Server, and give the connection an identifiable internal name.
Files.com supports connecting to S3 buckets in many regions, including regions where Files.com itself doesn't have an AWS presence. This includes Govcloud. Contact us if you need to access a region you don't see listed and we will work to add it.
When allocating new storage for a Files.com integration, we recommend creating a bucket for its exclusive use. For an existing application bucket or a location supplied by a counterparty, the connection uses the bucket and paths the operator makes available.
AWS Region
The bucket's operator can supply its AWS region code. With suitable AWS access, you can also find it using the get-bucket-location command of the AWS CLI tool. You can cross-reference the region code and region name using Amazon's online documentation.
Bucket Name
Use the exact bucket name supplied by its operator. For buckets you administer, the name appears in the Amazon AWS Console, within the Amazon S3 section, under the Buckets list.
Authentication Information
Files.com supports two authentication methods for connecting to Amazon S3: Access Key with Secret Access Key and AWS STS with IAM Role Assumption.
The available method depends on what the AWS administrator permits for the connection. Where you can choose, STS role assumption is our recommendation for most production connections: it uses temporary credentials and keeps the role's access policy in the AWS account granting access. Access keys fit an existing static-key and rotation process.
The authentication information can be placed in the Remote Server Credential Manager and selected when configuring the Remote Server.
Access Key with Secret Access Key
Provide an AWS Access Key ID and Secret Access Key associated with an IAM user that has permission to access the target S3 bucket.
The IAM user must have appropriate permissions for the operations you intend to perform. Scope permissions to the specific bucket and paths required, for least-privilege access.
This method stores long-lived credentials in Files.com.
AWS STS with IAM Role Assumption
Files.com supports authentication using AWS Security Token Service (STS) by assuming an IAM role in the AWS account granting access. This method uses temporary credentials instead of long-lived access keys.
The connection requires the IAM role's Role ARN and a trust policy allowing Files.com to assume it. Files.com displays a sample trust policy and your site's External ID during setup. The AWS administrator applies that trust relationship and grants the role the bucket permissions needed for the work. The STS reference explains the relationship between the principal, External ID, and temporary credentials.
The Assume Role Session Duration setting, which defaults to 3600 seconds (1 hour), specifies the duration for the STS credential. This default matches the default for an IAM role. If the IAM role has a custom value for its Maximum session duration setting in AWS, configure the Files.com setting to a value equal to or lower than the IAM role's maximum session duration.
Files.com automatically renews temporary credentials before they expire to maintain uninterrupted access to S3.
Access Permissions
Regardless of authentication method, the IAM user or role must have permissions appropriate to the intended use of the Remote Server.
The AWS administrator scopes permissions to the bucket and object prefix required for the integration. The following policy examples are for that administrator to apply. If another party manages the AWS identity, the examples describe the access to request for the agreed operations.
Read/Write Policy Example
Attach an identity-based policy to the IAM user or role used by this connection. The following example grants access to one bucket.
Use this example for read/write workflows. Restrict the actions and object paths for narrower workflows; bucket policies and other AWS controls can impose additional requirements. For SSE-KMS encrypted objects, the connection also needs KMS permissions.
Replace <bucketname> with your bucket name. Identity-based policies do not contain a Principal; the policy applies to the identity it is attached to.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:GetBucketLocation",
"s3:PutObject",
"s3:PutObjectAcl",
"s3:GetObject",
"s3:GetObjectAcl",
"s3:DeleteObject"
],
"Resource": [
"arn:aws:s3:::<bucketname>",
"arn:aws:s3:::<bucketname>/*"
]
}
]
}
Read-Only Permission
Access to the S3 bucket is determined by the policies and permissions in Amazon S3.
For a connection that may list and download files but must not change them, the AWS administrator can apply the following policy. Replace <bucketname> with the bucket name:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:ListBucket",
"s3:GetBucketLocation"
],
"Resource": [
"arn:aws:s3:::<bucketname>",
"arn:aws:s3:::<bucketname>/path/to/subfolder/*"
]
}
]
}
The AWS policy permissions are separate from Files.com permissions.
When you restrict AWS access to read-only, also set any Files.com users with permission to access this bucket to read-only user permissions.
KMS Key Permissions
For SSE-KMS, the IAM user or role used by the connection needs kms:GenerateDataKey on the key for writes and kms:Decrypt for reads. Multipart uploads require both permissions, even if the workflow only uploads files. These permissions are in addition to the S3 permissions above; a read-only connection still needs kms:Decrypt for the keys used to encrypt the objects it reads.
Scope these permissions to the required key ARNs. The KMS key policy must permit the identity to use the key, either directly or by enabling the IAM policies that grant access. If you change the configured key, retain access to earlier keys for as long as the connection needs to read objects encrypted with them.
Subfolder-Restricted Credentials
If the connection's AWS policy does not grant access to the entire bucket, or grants access only to specific subfolders, verification of access to the bucket may fail when testing credentials.
Use the Access Level for These Credentials on the Remote Server setting to specify an accessible subfolder for verifying access when testing your credentials.
Customer-Managed KMS Keys
If the bucket policy requires each write to specify a particular AWS Key Management Service (KMS) key, configure the optional KMS Key ARN setting on the Amazon S3 Remote Server with the ARN supplied by the key owner. Files.com requests server-side encryption with AWS KMS (SSE-KMS) for objects it writes, using that key. This lets the connection meet the bucket's encryption requirements whether your organization or a counterparty controls the key.
The value must be the key's full Amazon Resource Name (ARN), such as arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab. Key IDs and aliases are not accepted. The key must be in the same AWS region as the bucket. GovCloud key ARNs beginning with arn:aws-us-gov:kms: are supported.
KMS Key ARN is available after AWS Region when creating the Remote Server, and under Settings > Remote Server Connection on an existing connection. It works with both IAM access keys and STS role assumption.
The configured key applies to objects Files.com writes through Remote Server Mounts and Syncs, including multipart uploads, copies within the bucket, and the slash files that represent folders. Uploads through Direct Routing use the key as well.
Leave the setting blank if the bucket does not require Files.com to specify a particular key. Changing or clearing the setting affects subsequent writes; it does not change the encryption of existing objects.
If the bucket policy still requires the key, clearing the setting causes writes to be rejected. S3 decrypts objects when they are read, using the key that encrypted each object and the connection's KMS permissions.
Incomplete Multipart Uploads
Files.com uses the Amazon S3 Multipart Upload API when transferring large files to the connected bucket. Multipart Upload improves performance and reliability by uploading file parts in parallel, but unfinished uploads can accumulate if they're never completed or aborted.
By default, S3 does not automatically delete incomplete multipart uploads. Any unfinished parts remain stored indefinitely and continue to incur storage costs.
We strongly recommend that the bucket administrator configure an AbortIncompleteMultipartUpload lifecycle rule to clean up uncompleted uploads after a set period.
Here is an example rule:
{
"Rules": [
{
"ID": "Abort incomplete uploads after 7 days",
"Status": "Enabled",
"Filter": {},
"AbortIncompleteMultipartUpload": {
"DaysAfterInitiation": 7
}
}
]
}
This rule tells Amazon S3: if a multipart upload was initiated more than seven days ago and hasn't been completed or aborted, automatically abort it and delete all uploaded parts. The administrator chooses the DaysAfterInitiation value for the storage policy, allowing enough time for the expected uploads to finish.
Supported S3 Storage Classes
Files.com supports reading and writing objects in the following S3 storage classes: Standard, Standard-IA, One Zone-IA, Intelligent-Tiering, and Glacier Instant Retrieval.
Objects in Glacier Flexible Retrieval and Glacier Deep Archive require an AWS restore before download. The archive restoration guidance explains responsibility and timing; S3 troubleshooting covers archived-object errors.
Intelligent-Tiering's optional Archive Access and Deep Archive Access tiers also require restoration before reading. Enabling those archive tiers can make an initially readable file unavailable to a later workflow. Storage Classes and Costs explains the access-time and billing tradeoffs, including retrieval, requests, and minimum storage durations.
Transfer Paths
Eligible client uploads and downloads use Direct Routing automatically. Amazon S3 also supports direct web uploads. Directly transferred contents avoid Files.com's network and Transfer Usage; buffering and required processing can change an upload's path.
A mounted bucket can be a source or destination for Automations as well as user operations. The shared Remote Server guidance explains the relationship between mounted access, Sync delivery, and workflow processing.
Case Sensitivity
Account for case sensitivity differences when copying, moving, or syncing files and folders between Amazon S3 and other storage locations. Amazon S3 is a case-sensitive system whereas other systems may not be. Files can be overwritten and folder contents merged when their case-insensitive names match.
Versioning
Amazon S3 supports bucket versioning. When versioning is enabled, S3 retains every version of each object. Files.com's standard file listing shows only the current version. Previous versions are not visible in the regular file browser.
When you delete a versioned object, S3 places a delete marker in the bucket rather than removing the object permanently. The object appears absent from the Files.com file browser, but previous versions remain in the bucket and continue to accrue storage costs.
Files.com supports point-in-time browsing for S3 buckets with versioning enabled. Point-in-time browsing lets you view and recover previous versions of files directly from the Files.com file browser.
For details on how deletions, renames, and moves behave on versioned buckets, see Object Storage Behavior.
The bucket administrator's data protection and lifecycle policies determine how long current and noncurrent versions remain. S3 Object Lock protects versions, while a delete marker or new version can still change the current path. Retaining a version and keeping that version visible to a mounted workflow are separate requirements.
Folder Representation Using Slash Files
Files.com presents object-key prefixes as folders and creates slash-file placeholders when needed, including for empty folders. These objects can be visible to other applications using the bucket. Folder moves and renames can require per-object copies and deletions rather than one directory operation.