Spaces:
Sleeping
Sleeping
File size: 496 Bytes
0ad4f4d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
#! /bin/bash
# S3 Bucket requires CORS rules before we can easily stream from it on HTTPS
aws s3api --endpoint-url ${AWS_S3_ENDPOINT} put-bucket-cors --bucket public-data --cors-configuration '{
"CORSRules": [
{
"AllowedOrigins": ["*"],
"AllowedMethods": ["GET"],
"ExposeHeaders": ["ETag", "Content-Type", "Content-Disposition"],
"AllowedHeaders": ["*"]
}
]
}'
aws s3api --endpoint-url https://s3-west.nrp-nautilus.io get-bucket-cors --bucket public-data
|