From 3b78062c5735e45be675331a4da8fa8e7f71494d Mon Sep 17 00:00:00 2001 From: Jona Date: Mon, 27 Nov 2023 12:28:25 -0500 Subject: [PATCH] inch by inch --- stack/sns_subscription.py | 6 +++--- stack/titiler_sentinel.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stack/sns_subscription.py b/stack/sns_subscription.py index 40557c65..cfd6a60b 100644 --- a/stack/sns_subscription.py +++ b/stack/sns_subscription.py @@ -7,9 +7,9 @@ keyname = pulumi.Config("cerulean-cloud").require("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")) +api_key = gcp.secretmanager.get_secret_version_output(secret=keyname).secret_data.apply( + lambda data: data.decode("utf-8") +) iam_for_lambda = aws.iam.Role( diff --git a/stack/titiler_sentinel.py b/stack/titiler_sentinel.py index 2d0a5016..a443c943 100644 --- a/stack/titiler_sentinel.py +++ b/stack/titiler_sentinel.py @@ -8,7 +8,7 @@ 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")) +).secret_data.apply(lambda data: data.decode("utf-8")) s3_bucket = aws.s3.Bucket(construct_name("titiler-lambda-archive"))