Skip to content

Commit

Permalink
Merge pull request 2i2c-org#3832 from sgibson91/openscapes/persistent…
Browse files Browse the repository at this point in the history
…-bucket

[Openscapes] Set up persistent buckets
  • Loading branch information
sgibson91 authored Mar 25, 2024
2 parents 466d193 + 81133dd commit 048b0bb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/clusters/openscapes/prod.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ basehub:
singleuser:
extraEnv:
SCRATCH_BUCKET: s3://openscapeshub-scratch/$(JUPYTERHUB_USER)
PERSISTENT_BUCKET: s3://openscapeshub-persistent/$(JUPYTERHUB_USER)
hub:
config:
GitHubOAuthenticator:
Expand Down
1 change: 1 addition & 0 deletions config/clusters/openscapes/staging.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ basehub:
singleuser:
extraEnv:
SCRATCH_BUCKET: s3://openscapeshub-scratch-staging/$(JUPYTERHUB_USER)
PERSISTENT_BUCKET: s3://openscapeshub-persistent-staging/$(JUPYTERHUB_USER)
hub:
config:
GitHubOAuthenticator:
Expand Down
16 changes: 14 additions & 2 deletions terraform/aws/projects/openscapes.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,29 @@ user_buckets = {
},
"prod-homedirs-archive" : {
"archival_storageclass_after" : 3
},
"persistent-staging" : {
"delete_after" : null
},
"persistent" : {
"delete_after" : null
}
}


hub_cloud_permissions = {
"staging" : {
bucket_admin_access : ["scratch-staging"],
bucket_admin_access : [
"scratch-staging",
"persistent-staging"
],
extra_iam_policy : ""
},
"prod" : {
bucket_admin_access : ["scratch"],
bucket_admin_access : [
"scratch",
"persistent"
],
extra_iam_policy : ""
},
}

0 comments on commit 048b0bb

Please sign in to comment.