Skip to content

Commit

Permalink
add it all back in
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaraphael committed Oct 12, 2023
1 parent 49d6716 commit 1043732
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 95 deletions.
85 changes: 0 additions & 85 deletions .github/workflows/quickdeploy.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ jobs:
mkdir -p cerulean_cloud/cloud_function_ais_analysis/cerulean_cloud/
cp cerulean_cloud/database_client.py cerulean_cloud/cloud_function_ais_analysis/cerulean_cloud/database_client.py
cp cerulean_cloud/database_schema.py cerulean_cloud/cloud_function_ais_analysis/cerulean_cloud/database_schema.py
cp cerulean_cloud/__init__.py cerulean_cloud/cloud_function_ais_analysis/cerulean_cloud/__init__.py
- uses: pulumi/actions@v3
id: pulumi
Expand Down
2 changes: 1 addition & 1 deletion stack/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"scene_relevancy_url", cloud_function_scene_relevancy.fxn.https_trigger_url
)
pulumi.export("historical_run_url", cloud_function_historical_run.fxn.https_trigger_url)
# pulumi.export("ais_analysis_url", cloud_function_ais_analysis.fxn.https_trigger_url)
pulumi.export("ais_analysis_url", cloud_function_ais_analysis.fxn.https_trigger_url)
pulumi.export("sns_topic_subscription", sns_subscription.sentinel1_sqs_target.arn)
pulumi.export("api_key", pulumi.Config("cerulean-cloud").require("apikey"))
18 changes: 9 additions & 9 deletions stack/cloud_function_ais_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@
service_account_email=cloud_function_service_account.email,
)

# invoker = cloudfunctions.FunctionIamMember(
# construct_name("cloud-function-ais-invoker"),
# project=fxn.project,
# region=fxn.region,
# cloud_function=fxn.name,
# role="roles/cloudfunctions.invoker",
# member="allUsers",
# )
invoker = cloudfunctions.FunctionIamMember(
construct_name("cloud-function-ais-invoker"),
project=fxn.project,
region=fxn.region,
cloud_function=fxn.name,
role="roles/cloudfunctions.invoker",
member="allUsers",
)

# config_values["FUNCTION_URL"] = fxn.https_trigger_url
config_values["FUNCTION_URL"] = fxn.https_trigger_url

0 comments on commit 1043732

Please sign in to comment.