Skip to content

Commit

Permalink
more unique names
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaraphael committed Sep 23, 2023
1 parent 2051589 commit 6b7bad0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions stack/cloud_function_ais_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
stack = pulumi.get_stack()
# We will store the source code to the Cloud Function in a Google Cloud Storage bucket.
bucket = storage.Bucket(
construct_name("bucket-cloud-function-ais"),
construct_name("bucket-cloud-function-ais-analysis"),
location="EU",
labels={"pulumi": "true", "environment": pulumi.get_stack()},
)
Expand Down Expand Up @@ -69,12 +69,12 @@

# Assign access to cloud SQL
cloud_function_service_account = serviceaccount.Account(
construct_name("cloud-function"),
account_id=f"{stack}-cloud-function",
construct_name("cloud-function-ais-analysis"),
account_id=f"{stack}-cloud-function-ais-analysis",
display_name="Service Account for cloud function.",
)
cloud_function_service_account_iam = projects.IAMMember(
construct_name("cloud-function-iam"),
construct_name("cloud-function-ais-analysis-iam"),
project=pulumi.Config("gcp").require("project"),
role="projects/cerulean-338116/roles/cloudfunctionaisanalysisrole",
member=cloud_function_service_account.email.apply(
Expand Down
8 changes: 4 additions & 4 deletions stack/cloud_function_scene_relevancy.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
stack = pulumi.get_stack()
# We will store the source code to the Cloud Function in a Google Cloud Storage bucket.
bucket = storage.Bucket(
construct_name("bucket-cloud-function-relevancy"),
construct_name("bucket-cloud-function-scene-relevancy"),
location="EU",
labels={"pulumi": "true", "environment": pulumi.get_stack()},
)
Expand Down Expand Up @@ -70,12 +70,12 @@

# Assign access to cloud SQL
cloud_function_service_account = serviceaccount.Account(
construct_name("cloud-function"),
account_id=f"{stack}-cloud-function",
construct_name("cloud-function-scene-relevancy"),
account_id=f"{stack}-cloud-function-scene-relevancy",
display_name="Service Account for cloud function.",
)
cloud_function_service_account_iam = projects.IAMMember(
construct_name("cloud-function-iam"),
construct_name("cloud-function-scene-relevancy-iam"),
project=pulumi.Config("gcp").require("project"),
role="projects/cerulean-338116/roles/cloudfunctionscenerelevancyrole",
member=cloud_function_service_account.email.apply(
Expand Down

0 comments on commit 6b7bad0

Please sign in to comment.