AWS S3 Manual Setup
Setting up AWS S3 Bucket for storing cypress recordings
The following configuration is already included in CloudFormation setup
  • Create a new S3 bucket, enable public access (uncheck Block all public access)
  • Set bucket's CORS configuration:
1
<?xml version="1.0" encoding="UTF-8"?>
2
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
3
<CORSRule>
4
<AllowedOrigin>*</AllowedOrigin>
5
<AllowedMethod>POST</AllowedMethod>
6
<AllowedMethod>GET</AllowedMethod>
7
<AllowedMethod>PUT</AllowedMethod>
8
<AllowedMethod>DELETE</AllowedMethod>
9
<AllowedMethod>HEAD</AllowedMethod>
10
<AllowedHeader>*</AllowedHeader>
11
</CORSRule>
12
</CORSConfiguration>
Copied!
or for new AWS dashboard:
1
[
2
{
3
"AllowedHeaders": ["*"],
4
"AllowedMethods": ["POST", "GET", "PUT", "DELETE", "HEAD"],
5
"AllowedOrigins": ["*"],
6
"ExposeHeaders": []
7
}
8
]
Copied!
  • Open IAM dashboard
  • Create new user, enable programmatic access. Keep the access key and the secret.
  • Create and attach the policy to the user:
    1
    {
    2
    "Version": "2012-10-17",
    3
    "Statement": [
    4
    {
    5
    "Sid": "VisualEditor0",
    6
    "Effect": "Allow",
    7
    "Action": [
    8
    "s3:PutObject",
    9
    "s3:PutObjectAcl"
    10
    ],
    11
    "Resource": "arn:aws:s3:::<your-bucket-name>/*"
    12
    }
    13
    ]
    14
    }
    Copied!
Copy link
Edit on GitHub