Skip to content

Commit

Permalink
Add info statements for logs
Browse files Browse the repository at this point in the history
  • Loading branch information
asteel-gsa committed Jul 25, 2024
1 parent ca31829 commit 40f3369
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion terraform/shared/modules/cors/cors-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export AWS_ACCESS_KEY_ID="$(echo "$S3_CREDENTIALS" | jq -r .credentials.access_k
export AWS_SECRET_ACCESS_KEY="$(echo "$S3_CREDENTIALS" | jq -r .credentials.secret_access_key)";
export BUCKET_NAME="$(echo "$S3_CREDENTIALS" | jq -r .credentials.bucket)";
export AWS_DEFAULT_REGION="$(echo "$S3_CREDENTIALS" | jq -r .credentials.region)";
echo "$BUCKET_NAME";
echo "Bucket: $BUCKET_NAME";
echo "INFO: Putting CORS config in bucket..."
/github/home/bin/aws s3api put-bucket-cors --bucket "$BUCKET_NAME" --cors-configuration file://"$3";
echo "INFO: aws s3api get-bucket-cors output..."
/github/home/bin/aws s3api get-bucket-cors --bucket "$BUCKET_NAME";
cf delete-service-key -f "${SERVICE_INSTANCE_NAME}" "${KEY_NAME}";

0 comments on commit 40f3369

Please sign in to comment.