diff --git a/bin/configure-tower-projects.py b/bin/configure-tower-projects.py index 8a78afe2..26552148 100755 --- a/bin/configure-tower-projects.py +++ b/bin/configure-tower-projects.py @@ -817,12 +817,14 @@ def add_member(self, user: str) -> dict: params = {"search": user} response = self.tower.paged_request("GET", f"{endpoint}", params=params) matches = list(response) - + print(matches) if len(matches) == 1 and matches[0]["email"] == user: member = matches[0] else: data = {"user": user} + print(data) response = self.tower.request("PUT", f"{endpoint}/add", json=data) + print(response) member = response["member"] self.members[user] = member diff --git a/config/config.yaml b/config/config.yaml index 42a97eca..54f3a569 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -3,7 +3,7 @@ profile: {{ var.profile | default() }} region: {{ var.region | default("us-east-1") }} aws_infra_templates_root_url: https://raw.githubusercontent.com/Sage-Bionetworks/aws-infra admincentral_cf_bucket: bootstrap-awss3cloudformationbucket-19qromfd235z9 -tower_version: v23.3.0 +tower_version: v23.1.4 default_stack_tags: Department: IBC Project: Infrastructure diff --git a/config/projects-prod/iatlas-project.yaml b/config/projects-prod/iatlas-project.yaml index 74aa09dd..4cecd0f2 100644 --- a/config/projects-prod/iatlas-project.yaml +++ b/config/projects-prod/iatlas-project.yaml @@ -21,6 +21,7 @@ parameters: - "{{stack_group_config.tower_viewer_arn_prefix}}/dbortone@email.unc.edu" - "{{stack_group_config.tower_viewer_arn_prefix}}/steven_vensko@med.unc.edu" - "{{stack_group_config.tower_viewer_arn_prefix}}/cheimann@isbscience.org" + - "{{stack_group_config.tower_viewer_arn_prefix}}/clarisse.lau@isbscience.org" AccountAdminArns: - "{{stack_group_config.sso_admin_role.arn}}" - !stack_output_external sagebase-github-oidc-workflows-prod-nextflow-infra::ProviderRoleArn diff --git a/config/projects-prod/mc2-mcmicro-project.yaml b/config/projects-prod/mc2-mcmicro-project.yaml index 5327d2cd..778ddbbd 100644 --- a/config/projects-prod/mc2-mcmicro-project.yaml +++ b/config/projects-prod/mc2-mcmicro-project.yaml @@ -14,7 +14,7 @@ parameters: # However, this will ensure that they are added to the Tower workspace # until we find a permanent solution for listing external users. - '{{stack_group_config.tower_viewer_arn_prefix}}/clarence@hms.harvard.edu' - - '{{stack_group_config.tower_viewer_arn_prefix}}/Jeremy_Muhlich@hms.harvard.edu' + - '{{stack_group_config.tower_viewer_arn_prefix}}/jeremy_muhlich@hms.harvard.edu' AllowSynapseIndexing: Enabled AccountAdminArns: - '{{stack_group_config.sso_admin_role.arn}}' diff --git a/templates/nextflow-tower-config-bucket.yaml b/templates/nextflow-tower-config-bucket.yaml index 171ab437..48773379 100644 --- a/templates/nextflow-tower-config-bucket.yaml +++ b/templates/nextflow-tower-config-bucket.yaml @@ -68,6 +68,7 @@ Resources: - "*@sagebase.org" - "*@sagebionetworks.org" - "cheimann@isbscience.org" + - "clarisse.lau@isbscience.org" trustedEmails: - "benjamin_vincent@med.unc.edu" - "dbortone@email.unc.edu"