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 réponse
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
EXPERT
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions