Not able to update lambda log format using CLI

0

I'm using below AWS CLI (v2) command to update the log format of my lambda function , but it's throwing an error as unknown options. As per the documentation, the parameters look correct. Not sure what I'm missing here.

Command aws lambda update-function-configuration --function-name lambda-test --logging-config LogFormat=JSON

Error Unknown options: --logging-config, LogFormat=JSON

preguntada hace 4 meses202 visualizaciones
1 Respuesta
0
Respuesta aceptada

Hello.

Is it possible that the AWS CLI version is outdated?
Please update the AWS CLI version to the latest version and then try running the command.
https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html

The "--logging-config" option was added in AWS CLI version 2.13.37, so if you are using a version lower than 2.13.37 you will need to upgrade.
https://raw.githubusercontent.com/aws/aws-cli/v2/CHANGELOG.rst

  • api-change:lambda: Adds support for logging configuration in Lambda Functions. Customers will have more control how their function logs are captured and to which cloud watch log group they are delivered also.
profile picture
EXPERTO
respondido hace 4 meses
profile picture
EXPERTO
revisado hace 4 meses
profile picture
EXPERTO
revisado hace 4 meses
profile pictureAWS
EXPERTO
revisado hace 4 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas