stacker.news/docker/s3/init-s3.sh

6 lines
293 B
Bash
Raw Normal View History

#!/bin/bash
pip3 install --upgrade virtualenv awscli awscli-local requests
awslocal s3 mb s3://uploads
2024-03-16 02:54:29 +00:00
awslocal s3api put-bucket-cors --bucket uploads --cors-configuration file:///etc/localstack/init/ready.d/cors.json
echo "Localstack S3 bucket 'uploads' created and CORS configuration added"