powerful-oyster-89864
08/05/2025, 1:01 PMother_secret_version = aws.secretsmanager.get_secret_version(
secret_id=other_secret_arn,
)
other_secret = json.loads(other_secret_version.secret_string)
google_idp = None
if idp_config.get("google") and idp_config["google"].get("enabled", False):
google_client_id = other_secret.get("GOOGLE_CLIENT_ID")
google_client_secret = other_secret.get("GOOGLE_CLIENT_SECRET")
if not google_client_id or not google_client_secret:
raise ValueError(f"Google client ID and secret must be provided in the {other_secret_arn}.")
google_idp = aws.cognito.IdentityProvider(
f"{resource_prefix}-google-idp",
user_pool_id=user_pool.id,
provider_name="Google",
provider_type="Google",
provider_details={
"client_id": google_client_id,
"client_secret": google_client_secret,
"authorize_scopes": idp_config["google"].get("authorize_scopes", "")
},
attribute_mapping=idp_config["google"].get("attribute_mapping", {})
)
echoing-dinner-19531
08/05/2025, 1:24 PMpulumi.Output.secret
(https://www.pulumi.com/docs/reference/pkg/python/pulumi/#pulumi.Output.secret)
They'll then be hidden from the display by default.No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by