Google Cloud Storage Source

The AWS S3 source enables Pic Swift CDN to download your images from a specified AWS S3 bucket

Create AWS S3 Source Credential

First, create a new source credentials of type AWS S3 if you havent done so:

AWS S3 source credential requires AWS Access Key ID and AWS Secret Access Key to authenticate to AWS S3.

Please the following AWS docs on how to:

  • Create IAM User

https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_create.html

  • Manage IAM User Access Keys

https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html

IAM User Permission

The IAM user should have permissions to list and get objects from the s3 bucket. Here is how that would look like as an IAM policy:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:ListBucket"
            ],
            "Resource": "arn:aws:s3:::{bucketName}"
        },
        {
            "Effect": "Allow",
            "Action": [
                "s3:GetObject"
            ],
            "Resource": "arn:aws:s3:::{bucketName}/*"
        }
    ]
}

Where {bucketName} is your AWS S3 bucket name

Create AWS S3 Source

Then create a new AWS S3 source linking it with the source credential you created:

Image demonstrating adding new aws s3 source via Pic Swift CDN dashboard

Once created take note of the source alias that is needed in the formation of your CDN url

Last updated