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"))