diff --git a/stack/sns_subscription.py b/stack/sns_subscription.py index 95ca1954..40557c65 100644 --- a/stack/sns_subscription.py +++ b/stack/sns_subscription.py @@ -6,7 +6,7 @@ from utils import construct_name keyname = pulumi.Config("cerulean-cloud").require("keyname") -secret = gcp.secretmanager.get_secret(name=keyname) +secret = gcp.secretmanager.get_secret(secret_id=keyname) api_key = gcp.secretmanager.get_secret_version_output( secret=keyname ).payload_data.apply(lambda data: data.decode("utf-8")) diff --git a/stack/titiler_sentinel.py b/stack/titiler_sentinel.py index 79b83207..2d0a5016 100644 --- a/stack/titiler_sentinel.py +++ b/stack/titiler_sentinel.py @@ -5,7 +5,7 @@ from utils import construct_name, create_package, filebase64sha256 titiler_keyname = pulumi.Config("cerulean-cloud").require("titiler_keyname") -secret = gcp.secretmanager.get_secret(name=titiler_keyname) +secret = gcp.secretmanager.get_secret(secret_id=titiler_keyname) titiler_api_key = gcp.secretmanager.get_secret_version_output( secret=titiler_keyname ).payload_data.apply(lambda data: data.decode("utf-8"))