Skip to content

Commit

Permalink
opensci, sciencecore: setup admin-sa and a persistent bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Apr 16, 2024
1 parent 5ee3771 commit 461a922
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 8 deletions.
14 changes: 14 additions & 0 deletions config/clusters/opensci/sciencecore.values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
userServiceAccount:
enabled: true
annotations:
eks.amazonaws.com/role-arn: arn:aws:iam::211125293633:role/opensci-sciencecore
adminServiceAccount:
enabled: true
annotations:
eks.amazonaws.com/role-arn: arn:aws:iam::211125293633:role/opensci-sciencecore-admin-sa

jupyterhub:
ingress:
hosts:
Expand Down Expand Up @@ -27,7 +36,12 @@ jupyterhub:
funded_by:
name: ""
url: ""
singleuserAdmin:
serviceAccountName: admin-sa
singleuser:
extraEnv:
SCRATCH_BUCKET: s3://opensci-scratch-sciencecore/$(JUPYTERHUB_USER)
PERSISTENT_BUCKET: s3://opensci-persistent-sciencecore/$(JUPYTERHUB_USER)
profileList:
- display_name: "Only Profile Available, this info is not shown in the UI"
slug: only-choice
Expand Down
23 changes: 15 additions & 8 deletions terraform/aws/projects/opensci.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,28 @@ user_buckets = {
"scratch-staging" : {
"delete_after" : 7
},
"scratch" : {
"scratch-sciencecore" : {
"delete_after" : 7
},
"persistent-sciencecore" : {
"delete_after" : null
},
}


hub_cloud_permissions = {
"staging" : {
requestor_pays : true,
bucket_admin_access : ["scratch-staging"],
extra_iam_policy : ""
"user-sa" : {
bucket_admin_access : ["scratch-staging"],
},
},
"prod" : {
requestor_pays : true,
bucket_admin_access : ["scratch"],
extra_iam_policy : ""
"sciencecore" : {
"user-sa" : {
bucket_admin_access : ["scratch-sciencecore"],
bucket_readonly_access : ["persistent-sciencecore"],
},
"admin-sa" : {
bucket_admin_access : ["scratch-sciencecore", "persistent-sciencecore"],
},
},
}

0 comments on commit 461a922

Please sign in to comment.