Salesforce Configuration
Log in the Amazon S3 management console: https://s3.console.aws.amazon.com/s3/home
Create bucket.
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": [] } ]
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.