Secrets Manager lambda call get_secret_value couldn't connect to endpoint URL

0

Endpointconnectionerror while retrieving secret using Lambda function.

When tried to access using the endpoint URL directly via web browser, got "<UnknownOperationException/>" (https://docs.aws.amazon.com/general/latest/gr/asm.html)

Checked AWS service health dashboard - no services are down as of now.

See the code below: client = session.client(service_name = "secretsmanager", region_name = region_name) get_secret_value_response = client.get_secret_value(SecretId = secret_name)

已提问 2 年前1101 查看次数
1 回答
1

Is the Lambda VPC enabled? If yes, have you created a VPC endpoint for Secrets Manager in the VPC - https://docs.aws.amazon.com/secretsmanager/latest/userguide/vpc-endpoint-overview.html

If you haven't enabled a VPC endpoint, is there a NAT Gateway configured on the VPC?

profile pictureAWS
专家
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则