Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Removing existing invocation_http_parameters block in aws_cloudwatch_event_connection creates permanent diff #37814

Open
asheynkmantyler opened this issue Jun 3, 2024 · 1 comment
Labels
bug Addresses a defect in current functionality. service/events Issues and PRs that pertain to the events service.

Comments

@asheynkmantyler
Copy link

asheynkmantyler commented Jun 3, 2024

Terraform Core Version

1.8.4

AWS Provider Version

5.52.0

Affected Resource(s)

aws_cloudwatch_event_connection

Expected Behavior

Here is a sequence of events:

  1. Create aws_cloudwatch_event_connection with invocation_http_parameters present and run terraform apply
  2. Remove invocation_http_parameters and run terraform apply.
  3. run terraform apply again. At this stage, I expect no differences

Actual Behavior

After step 2 any terraform apply will report that it attempts to remove invocation_http_parameters block from config, producing permanent diff

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "aws_cloudwatch_event_connection"conn” {
  name               = "test"
  authorization_type = "OAUTH_CLIENT_CREDENTIALS"
  auth_parameters {
    invocation_http_parameters {
      header {
        key = "foo"
        value = "bar"
      }
    }
    oauth {
      authorization_endpoint = "https://example.com"
      http_method            = "POST"

      client_parameters {
        client_id     = "id"
        client_secret = "secret"
      }
      oauth_http_parameters {
        body {
          key             = "grant_type"
          value           = "client_credentials"
          is_value_secret = false
        }
      }
    }
  }
}

Steps to Reproduce

  1. Run code above to create connection with invocation_http_parameters block
  2. Remove invocation_http_parameters block and run terraform apply again
  3. Run terraform apply for the third time, and see terraform reporting that it has to remove invocation_http_parameters block

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@asheynkmantyler asheynkmantyler added the bug Addresses a defect in current functionality. label Jun 3, 2024
Copy link

github-actions bot commented Jun 3, 2024

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/events Issues and PRs that pertain to the events service. label Jun 3, 2024
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Jun 3, 2024
@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. service/events Issues and PRs that pertain to the events service.
Projects
None yet
Development

No branches or pull requests

2 participants