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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南