Enable X-Ray Active tracing of a lambda function

Viewed 827

I'm trying to add active tracing to 2 lambda functions, one in Node and one in Python. My service role has all the XRayWriteAccess permissions, I click the Advanced > Enable active tracing , see the info on permissions, click save, and see :

enter image description here

A web search did not return anything conclusive, any ideas?

1 Answers

Your web console maybe was prefilling some form fields (I blame the browser for it). If you just want to enable X-Ray Active tracing for the function, make a call to update-function-configuration with AWS CLI:

aws lambda update-function-configuration \
    --function-name <name> \
    --tracing-config Mode=Active
Related