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)

1 Antwort
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
EXPERTE
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen