Skip to content

Commit

Permalink
Fjern alt test-relatert fra scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
augustdahl committed Jul 1, 2024
1 parent b9643b5 commit edff965
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions scripts/dask_infrastructure.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,11 @@ def generate_module_definition(ad_group_name: str, area_name: str, project_name:
deploy_sa_map = {{
sandbox = "{project_name.lower()}-deploy@{project_id_map['sandbox']}.iam.gserviceaccount.com",
dev = "{project_name.lower()}-deploy@{project_id_map['dev']}.iam.gserviceaccount.com",
test = "{project_name.lower()}-deploy@{project_id_map['test']}.iam.gserviceaccount.com",
prod = "{project_name.lower()}-deploy@{project_id_map['prod']}.iam.gserviceaccount.com"
}}
projects = {{
sandbox = "{project_id_map['sandbox']}",
dev = "{project_id_map['dev']}",
test = "{project_id_map['test']}",
prod = "{project_id_map['prod']}",
}}
Expand Down
6 changes: 3 additions & 3 deletions scripts/gcp_service_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def edit_file(file_path, params):
project_name: str = params.get("project_name")
project_ids = params["gcp_project_ids"]
project_id_sandbox = project_ids["sandbox"]
project_id_test = project_ids["test"]
project_id_dev = project_ids["dev"]
project_id_prod = project_ids["prod"]

# Handle modules.tf
Expand All @@ -53,8 +53,8 @@ def edit_file(file_path, params):
sandbox_var_entry = get_project_var_entry(project_id_sandbox)
append_content_to_end_of_file(file_path + "/sandbox.tfvars", sandbox_var_entry)

test_var_entry = get_project_var_entry(project_id_test)
append_content_to_end_of_file(file_path + "/test.tfvars", test_var_entry)
dev_var_entry = get_project_var_entry(project_id_dev)
append_content_to_end_of_file(file_path + "/dev.tfvars", dev_var_entry)

prod_var_entry = get_project_var_entry(project_id_prod)
append_content_to_end_of_file(file_path + "/prod.tfvars", prod_var_entry)
Expand Down

0 comments on commit edff965

Please sign in to comment.