Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Salesforce Configuration

  1. Log in the Amazon S3 management console: https://s3.console.aws.amazon.com/s3/home

  2. Create bucket.

...

  1. Edit bucket policy.

...

3.1 Bucket policy.

...

Code Block
{
    "Version": "2012-10-17",
    "Id": "S3PolicyId1",
    "Statement": [
        {
            "Sid": "statement1",
            "Effect": "Allow",
            "Principal": {
                "AWS": "*"
            },
            "Action": "s3:GetObject",
            "Resource": "arn:aws:s3:::puteyun.cc-dev/*"
        }
    ]
}

Note: Only need to modify the Resource node.

3.2 Edit CORS.

...

Code Block
[
    {
        "AllowedHeaders": [
            "*"
        ],
        "AllowedMethods": [
            "PUT",
            "POST",
            "DELETE",
            "GET",
            "HEAD"
        ],
        "AllowedOrigins": [
            "*"
        ],
        "ExposeHeaders": []
    }
]

  1. Configure authorization key.

4.1 Enter the IAM management console: https://us-east-1.console.aws.amazon.com/iamv2/home?region=us-west-1#/home

...

4.2 Add users.

...

4.3 Select S3 management permissions.

...

4.4 Generate key.

...