forked from CU-DBMI/gc-cloud-storage-bucket
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to .bat file and add Terraform role for bucket permissions (CU-D…
…BMI#2) * changes for assayworks project specifics * update shell script with bucket name * detemplatize; gsutil instructions * assay works docs context; simplify source dir * bucket.get svc-acct role binding * move gsutil work from .sh to .bat file Co-Authored-By: Faisal Alquaddoomi <faisal.alquaddoomi@cuanschutz.edu> * linting; remove shellcheck * rename gsutil file, remove .sh file * remove shellcheck Co-authored-by: Faisal Alquaddoomi <faisal.alquaddoomi@cuanschutz.edu>
- Loading branch information
1 parent
784c5ea
commit 3226eb3
Showing
8 changed files
with
52 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -205,3 +205,5 @@ cue.mod/dagger.* | |
|
||
# data ignores | ||
*.json | ||
*.zip | ||
*.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
:: This file automates how data are sync'd to a | ||
:: Google Cloud Cloud Storage bucket using a | ||
:: pre-existing service account key. | ||
:: | ||
:: Notes: | ||
:: ---------------------------------------------------- | ||
:: presumes gsutil has already been installed and is | ||
:: available in the path. | ||
:: see gsutil docs for more information: | ||
:: https://cloud.google.com/storage/docs/gsutil_install | ||
|
||
:: authenticate gcloud for the service account | ||
:: note: this is the preferred method for authenticating gsutil | ||
:: see the following for more details: | ||
:: https://cloud.google.com/storage/docs/gsutil/commands/config#configuring-service-account-credentials | ||
call gcloud auth activate-service-account --key-file=service-account.json | ||
|
||
:: synchronize data from local directory `./data` | ||
:: to bucket lab-initiative-bucket | ||
:: see the following for more details: | ||
:: https://cloud.google.com/storage/docs/gsutil/commands/rsync | ||
call gsutil rsync -r data gs://waylab-assayworks-bucket | ||
|
||
pause |
This file was deleted.
Oops, something went wrong.