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)

posta 2 anni fa1101 visualizzazioni
1 Risposta
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
ESPERTO
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande