forked from oracle-devrel/oracle-autonomous-database-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate-data-lake-storage.sh
More file actions
executable file
·31 lines (24 loc) · 954 Bytes
/
create-data-lake-storage.sh
File metadata and controls
executable file
·31 lines (24 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# Copyright (c) 2025 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
echo ""
echo "##"
echo "# Create a Google Cloud Storage bucket"
echo "##"
echo ""
# ensure you update the config file to match your deployment prior to running the deployment
source config
echo "# Creating Google Cloud Storage bucket $STORAGE_ACCOUNT_NAME"
gcloud storage buckets create gs://$BUCKET_NAME --location=$REGION --default-storage-class=STANDARD
echo "# Uploading sample files"
echo "Support site files"
gcloud storage cp -r ../../sql/support-site gs://$BUCKET_NAME/support-site
echo "Sample data sets"
gcloud storage cp -r ../../sql/data gs://$BUCKET_NAME/data
echo "Done."
gcloud storage ls --long --recursive gs://$BUCKET_NAME
echo ""
echo "Bucket Name: $BUCKET_NAME"
gcloud storage hmac list
echo "Storage URL:"
echo "https://storage.googleapis.com/$BUCKET_NAME"