hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.83k stars 9.17k forks source link

[Bug]: aws_apigatewayv2_stage cycles on logging_level #39477

Open t0yv0 opened 1 month ago

t0yv0 commented 1 month ago

Terraform Core Version

1.8.3

AWS Provider Version

5.68.0

Affected Resource(s)

Expected Behavior

Resource reaches steady state.

Actual Behavior

Resource cycles.

Relevant Error/Panic Output Snippet

N/A

Terraform Configuration Files


resource "aws_apigatewayv2_api" "example" {
  name = "exampleapi1"
  protocol_type = "HTTP"
}

resource "aws_apigatewayv2_stage" "stage" {
  name = "exampleapistage1"
  api_id = "${aws_apigatewayv2_api.example.id}"
  default_route_settings {
    logging_level = "ERROR"
  }
}

Steps to Reproduce

Repeated terraform apply

Debug Output

  # aws_apigatewayv2_stage.stage will be updated in-place
  ~ resource "aws_apigatewayv2_stage" "stage" {
        id                    = "exampleapistage1"
        name                  = "exampleapistage1"
        tags                  = {}
        # (10 unchanged attributes hidden)

      ~ default_route_settings {
          + logging_level            = "ERROR"
            # (4 unchanged attributes hidden)
        }
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Panic Output

N/A

Important Factoids

N/A

References

N/A

Would you like to implement a fix?

No

github-actions[bot] commented 1 month ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue