S3 file storage. A cloud based object storage REST service. Allows storing data as is with no scalability restrictions.
S3 (Simple Storage Service). A data transfer protocol developed by Amazon. We recommend using Amazon S3 storage. Read more in the vendor’s official documentation.
To integrate an S3 file storage to a cloud Creatio instance, contact the support team. To integrate an S3 file storage to an on-site Creatio instance, your Creatio administrator must use this instruction.
In general, the following steps are required to set up S3 file storage integration:
- Settings on the S3 side. Learn more >>>
- Settings on the Creatio side. Learn more >>>
Settings on the S3 side
- Create an account with an S3-capable storage service.
- Generate a “ServiceUrl” parameter to enable Creatio to access the storage.
- Generate the “AccessKey” and “SecretKey” parameters to enable authorized requests to the storage.
-
Create “ObjectBucketName” and “RecycleBucketName” buckets with unique names.
- “ObjectBucketName” is a bucket for storing files. The files are stored indefinitely.
- “RecycleBucketName” is a bucket for storing deleted files. They are kept for database backups. Working with the buckets is based on the soft deletion principle: a file deleted from the “ObjectBucketName” bucket is moved to the “RecycleBucketName” bucket. The storage time for deleted files is controlled by the bucket settings of the service. For example, a file can be stored in the bucket for 90 days, then deleted automatically. In Creatio, the storage time for deleted files is the same as the storage time for database backups.
Learn more in the vendor’s official documentation.
Settings on the Creatio side
To save new files uploaded to the Attachments and notes detail or email attachments in the S3 storage rather than the database, make the following adjustments on the Creatio side:
-
Set up a connection to the S3 storage. To do this, add an S3 storage connection string to the connectionString parameter of the ConnectionStrings.config configuration file:
where
- ServiceUrl is the endpoint for accessing the S3 storage.
- AccessKey is the account access key for making an authorized request to the S3 storage.
- SecretKey is the account key for making an authorized request to the S3 storage.
- ObjectBucketName is the name of the container for storing files.
- RecycleBucketName is the name of the container for storing deleted files. They are kept for database backups.
-
To ensure that connected files are also mfooved to “RecycleBucketName” when a section record is deleted, go to the Feature toggle page and enable the “UseBaseEntityFileDeleteListener” functionality. Learn more: Feature Toggle mechanism (developer documentation).
-
Set the S3 storage as the active file storage. To do this, open the “Active file content storage” system setting (code ActiveFileContentStorage). Select “S3 storage” in the Default value field.
As a result, all files added to Creatio after connecting the S3 storage will be uploaded there. Files previously added to Creatio will remain in the original storage.