Earlier in this guide, you created two S3 users. In this step, make sure to use the Access Key ID and Secret Access Key from the "CloudCannon-to-S3" user when you connect your Amazon S3 DAM to CloudCannon.
In this step, you will connect CloudCannon to your S3 bucket.
- Open the Assets page under Site Settings.
- Select the New DAM option in the Link DAM dropdown menu.
- Select the Amazon S3 option in the DAM provider dropdown menu.
- Enter a name to identify your DAM in CloudCannon.
- Set the Base URL to the IMGIX base URL.
- Set the S3 Bucket Name to the name of your bucket in S3.
- Select the same AWS Region as your S3 bucket.
- Enter the Access Key ID and Secret Access Key from your IAM user in the IAM Access Key and IAM Access Secret fields, respectively. If you created two users earlier in this guide, select the keys from the "CloudCannon-to-S3" user.
- Click the Authenticate button to save and close the modal.
- Click the Link DAM button.
IMGIX and your S3 bucket are now connected to your CloudCannon Site.
You can optionally set an Extra Prefix for your DAM. An extra prefix prepends a specific string to all asset paths, affecting all assets you upload to your DAM from this Site and the DAM browser in CloudCannon. This is useful if you want to ensure that your Site can only interact with a specific folder in your DAM.
To configure an Extra Prefix, navigate to the Assets page under Site Settings, click on the Context Menu for your linked Amazon S3 DAM, and select Settings from the menu. Enter the prefix in the Extra prefix field.