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

demandé il y a 4 mois202 vues
1 réponse
0
Réponse acceptée

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
EXPERT
répondu il y a 4 mois
profile picture
EXPERT
vérifié il y a 4 mois
profile picture
EXPERT
vérifié il y a 4 mois
profile pictureAWS
EXPERT
vérifié il y a 4 mois

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