Tutorials

How to integrate AWS S3 bucket with CloudFiles

This guide will walk you through the process of connecting your AWS S3 bucket to CloudFiles using an AWS CloudFormation template. By the end of this guide, you will have created a new stack in CloudFormation and obtained the necessary details to successfully link your S3 bucket to CloudFiles.

Prerequisites

You need an active AWS account and an S3 bucket for integration. Ensure that you have already created the required S3 bucket in your account before proceeding with the following steps.

CloudFormation Template:

Steps

  1. Access AWS CloudFormation
    • In the AWS Management Console, search for and select 'CloudFormation'.
  2. Create a New Stack
    • Click on “Create stack” and select “With new resources (standard)”.
    • Choose “Template is ready” under the “Prepare template” options.
  3. Upload the CloudFormation Template
    • Select “Upload a template file”.
    • Click on “Choose file” and upload the CloudFormation template provided above
    • Click “Next”.
  4. Specify Stack Details
    • Enter a name for your stack. For example, “CloudFilesS3Integration”.
    • Fill in any parameters required by the template, if applicable.
    • Click “Next”.
  5. Configure Stack Options (Optional)
    • Configure any additional options like tags or permissions if necessary.
    • Click “Next”.
  6. Review and Create the Stack
    • Review all settings and details. Make sure everything is correct.
    • Acknowledge that AWS CloudFormation might create IAM resources.
    • Click “Create stack”.
  7. Wait for Stack Creation
    • The stack creation process might take a few minutes. Wait until the status changes to “CREATE_COMPLETE”.
  8. Obtain the Outputs
    • Once the stack creation is complete, go to the “Outputs” tab of your stack.
    • Note down the ‘Bucket Name’ and ‘Role ARN’ values. These are essential for connecting your S3 bucket to CloudFiles.
  9. Enter Details in CloudFiles
    • Log into your CloudFiles account.
    • Navigate to the S3 bucket integration section.
    • Enter the ‘Bucket Name’ and ‘Role ARN’ you noted down earlier.
    • Save your settings.

After entering the details in CloudFiles, your S3 bucket should now be successfully connected to your CloudFiles account. You can start managing and accessing your S3 files directly through CloudFiles.