This script automates the process of setting up an S3 bucket in AWS. It performs the following tasks:
- Checks if the specified S3 bucket already exists.
- Creates the bucket if it does not exist.
- Removes Block Public Access settings from the bucket.
- Attaches a specified bucket policy to allow public read access.
- Configures CORS settings for the bucket.
- Enables static website hosting on the bucket.
./s3_setup.sh --bucket-name BUCKET_NAME --region REGION --profile PROFILE