Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

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.

{
    "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.

[
    {
        "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.

  • No labels