File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed
Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# For demo purpose only;
4- # Access key and secret key are set and using `aws configure`
4+ # Access key and secret key are set by using `aws configure`
55# to manage the aws cli on your local machine
66
77# Set the name of the S3 bucket
88bucket_name=" shipment-list-demo-bucket"
99aws_region=" eu-central-1"
1010
11- # Create the S3 bucket
12- aws s3 mb s3://$bucket_name
13-
14- # Set the region for the S3 bucket
15- aws s3api create-bucket --bucket $bucket_name --region $aws_region
11+ # Create the S3 bucket and set the region
12+ aws s3api create-bucket --bucket $bucket_name --region eu-central-1 \
13+ --create-bucket-configuration LocationConstraint=eu-central-1
1614
1715# Set the bucket policy
18- aws s3api put-bucket-acl --bucket $bucket_name --acl private
16+ aws s3api put-bucket-acl --bucket $bucket_name --acl private
You can’t perform that action at this time.
0 commit comments