Skip to content

Commit

Permalink
fixes for aws cli
Browse files Browse the repository at this point in the history
  • Loading branch information
malscent committed Jul 7, 2023
1 parent 03424f7 commit 95b27d5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion aws/CouchbaseServer-Graviton/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ SUBNET_ID=$(aws ec2 describe-subnets --filter "Name=vpc-id,Values=${VPC_NAME}" -

# Create Bucket
BUCKET="mp-test-templates$(__generate_random_string)"
aws s3api create-bucket --acl public-read --bucket "$BUCKET" --object-ownership BucketOwnerPreferred --region "$REGION"
aws s3api create-bucket --acl private --bucket "$BUCKET" --object-ownership ObjectWriter --region "$REGION"
aws s3api delete-public-access-block --bucket "$BUCKET" --region "$REGION"
aws s3api put-bucket-acl --acl private --bucket "$BUCKET" --region "$REGION"
KEY="aws-cb-server$(__generate_random_string).template"
aws s3api put-object --bucket "$BUCKET" --key "$KEY" --body "$TEMPLATE_BODY_FILE" --region "$REGION"

Expand Down
5 changes: 4 additions & 1 deletion aws/CouchbaseServer/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ SUBNET_ID=$(aws ec2 describe-subnets --filter "Name=vpc-id,Values=${VPC_NAME}" -

# Create Bucket
BUCKET="mp-test-templates$(__generate_random_string)"
aws s3api create-bucket --acl public-read --bucket "$BUCKET" --object-ownership BucketOwnerPreferred --region "$REGION"
aws s3api create-bucket --acl private --bucket "$BUCKET" --object-ownership ObjectWriter --region "$REGION"
aws s3api delete-public-access-block --bucket "$BUCKET" --region "$REGION"
aws s3api put-bucket-acl --acl private --bucket "$BUCKET" --region "$REGION"

KEY="aws-cb-server$(__generate_random_string).template"
aws s3api put-object --bucket "$BUCKET" --key "$KEY" --body "$TEMPLATE_BODY_FILE"

Expand Down
4 changes: 3 additions & 1 deletion aws/CouchbaseServerAndSyncGateway/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ TEMPLATE_BODY_FILE="${SCRIPT_SOURCE}/../../build/aws/CouchbaseServerAndSyncGatew
echo "$TEMPLATE_BODY_FILE"

BUCKET="mp-test-templates$(__generate_random_string)"
aws s3api create-bucket --acl public-read --bucket "$BUCKET" --object-ownership BucketOwnerPreferred --region "$REGION"
aws s3api create-bucket --acl private --bucket "$BUCKET" --object-ownership ObjectWriter --region "$REGION"
aws s3api delete-public-access-block --bucket "$BUCKET" --region "$REGION"
aws s3api put-bucket-acl --acl private --bucket "$BUCKET" --region "$REGION"
KEY="aws-cb-server$(__generate_random_string).template"
aws s3api put-object --bucket "$BUCKET" --key "$KEY" --body "$TEMPLATE_BODY_FILE"

Expand Down

0 comments on commit 95b27d5

Please sign in to comment.