Skip to content

[Bug]: Not able to delete the tracing_config block. #30838

Closed as not planned
Closed as not planned
@NishaSubramani-stats

Description

@NishaSubramani-stats

Terraform Core Version

1.3.6

AWS Provider Version

4.40.0

Affected Resource(s)

aws lambda function

Expected Behavior

Tracing config needs to be disabled for lambda once we remove the block from terraform.

Actual Behavior

When tracing config is removed it's not reflecting any changes in the infrastructure.

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource “aws_lambda_function” “xxx” {
  function_name = “xxx”
  role = “role”
  handler = “lambda_function.main”
  runtime = “python3.9”
  timeout = 300
  memory_size = 1792
  layers = [xray_lambda_layer]
  tracing_config {
      mode = “Active”
  }
}

Steps to Reproduce

  1. Deploy lambda with tracing_config block enabling the tracing mode: "Active"
  2. Remove the tracing block
  3. Do terraform plan
  4. The plan doesn't include disabling the tracing

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAddresses a defect in current functionality.service/lambdaIssues and PRs that pertain to the lambda service.staleOld or inactive issues managed by automation, if no further action taken these will get closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions