Skip to main content

Connect an S3 adapter

An S3 adapter connects a bucket in AWS S3 or S3-compatible storage as Office document storage. Use the entire bucket or specify a prefix to limit access to documents under a particular path.

Prepare connection details

Prepare the bucket, region, and access key you will use. For S3-compatible storage, also check the service endpoint and its SSL and path-style requirements.

Add an S3 adapter

The screenshot below shows the AWS S3 registration form in the admin page. Enter the values for your storage service.

AWS S3 adapter registration form in the admin page

  1. Under External linkage in the Office admin page, click Add Adapter.
  2. Select AWS S3 or S3 compatible as the Adapter type.
  3. Enter the following connection details.
FieldValue to enter
NameA unique adapter name for document URLs. Example: company-s3
DescriptionWhat the adapter is used for
Access KeyThe access key used to access the bucket
Secret Access KeyThe secret corresponding to the access key
RegionThe bucket region. Select Enter manually if it is not listed
BucketThe bucket name only, without s3:// or a path
PrefixThe path to use, such as office-documents. Leave empty to use the bucket root
Session TokenThe session token supplied with temporary credentials

Additional fields for S3-compatible storage

FieldValue to enter
EndpointThe storage domain or IP address and port. Example: storage.example.com:9000
Force Path StyleSelect Use if required by the storage service
Use SSLSelect Use for HTTPS or Do not use for HTTP

Do not include a path or query string in the endpoint. If you include http:// or https:// in the address, match the Use SSL selection to that protocol.

Document encryption

Select Encrypt documents when stored and enter a Document encryption key to encrypt documents when saving them. Existing documents are also encrypted when opened and saved. The encryption setting and key cannot be changed after registering the adapter.

Keep the encryption key and adapter settings

Documents stored in S3 remain encrypted even if you lose the encryption key or delete the S3 adapter configured for encryption. You cannot open them without restoring the same encryption key and connection settings. Keep a separate, secure copy of the key and adapter settings.

Test and register the connection

  1. Click Test connection.
  2. If the connection and file listing succeed, click Register.
  3. Create a document URL using the registered adapter name and the document path relative to the prefix.
  4. Open a test document, edit and save it, then reopen it to check that your changes persist.

A successful file listing does not confirm permission to save documents. If the connection test fails, check the keys, region, bucket, endpoint, and list permissions. If documents open but cannot be saved, check write permissions.

Create a document URL

Use the adapter name company-s3, bucket company-documents, and prefix office-documents entered in the screenshot above. This example opens reports/Quarterly Report.docx under that prefix.

FieldValue
Office addresshttp://localhost:8080
Namecompany-s3
Bucketcompany-documents
Prefixoffice-documents
Object key in the bucketoffice-documents/reports/Quarterly Report.docx
Document path in the URLreports/Quarterly Report.docx

Append /cloud-office/api/, the adapter name, the path relative to the prefix, and /open to the Office address.

http://localhost:8080/cloud-office/api/company-s3/reports/Quarterly%20Report.docx/open?app=WORD_EDITOR&user_id=local-user&docId=s3report001

The bucket name, region, and prefix come from the adapter settings, so do not repeat them in the Office URL. If Prefix is empty, the entire object key is the relative document path. S3-compatible storage uses the same URL format.

Replace the Office address and port, adapter name, and document path with your actual values. Preserve / between directories and URL-encode each path segment, such as %20 for spaces. See Create document URLs for user and unique document identifiers, app values for each file type, and all options.

Next steps