Skip to content

Instantly share code, notes, and snippets.

@mdlavin
Last active July 23, 2024 14:40
Show Gist options
  • Save mdlavin/1b8fcc1b05932f6c105fb7c4ad34c204 to your computer and use it in GitHub Desktop.
Save mdlavin/1b8fcc1b05932f6c105fb7c4ad34c204 to your computer and use it in GitHub Desktop.
Terraform configuration to enable X-Ray for a Lambda function
resource "aws_lambda_function" "service" {
# Your usual aws_lambda_function configuration settings here
tracing_config {
mode = "Active"
}
}
@jzaoueli
Copy link

jzaoueli commented Mar 18, 2024

Hi, not sure if anyone's run into this situation where if you remove that tracing_config block, tracing is still turned on?

yes me also. I had to change it to "PassThrough" to turn it of. I'm not sure if this is the right workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment