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.77k stars 9.12k forks source link

[Bug]: resource "aws_sesv2_configuration_set_event_destination" always show changes #36896

Closed damianarata closed 3 weeks ago

damianarata commented 5 months ago

Terraform Core Version

1.7.4

AWS Provider Version

5.45.0

Affected Resource(s)

aws_sesv2_configuration_set_event_destination

Expected Behavior

Show no changes.

Actual Behavior

Always is trying to apply dummy changes in matching_event_types.

Relevant Error/Panic Output Snippet

# aws_sesv2_configuration_set_event_destination.events will be updated in-place
  ~ resource "aws_sesv2_configuration_set_event_destination" "events" {
        id                     = "ses-sns"
        # (2 unchanged attributes hidden)

      ~ event_destination {
          ~ matching_event_types = [
              + "SEND",
              + "REJECT",
                "BOUNCE",
                # (1 unchanged element hidden)
                "DELIVERY",
              - "DELIVERY_DELAY",
              - "REJECT",
                "RENDERING_FAILURE",
              - "SEND",
              + "DELIVERY_DELAY",
                "SUBSCRIPTION",
            ]
            # (1 unchanged attribute hidden)

            # (1 unchanged block hidden)
        }
    }

Terraform Configuration Files

resource "aws_sesv2_configuration_set_event_destination" "events" {
  configuration_set_name = aws_sesv2_configuration_set.main.configuration_set_name
  event_destination_name = "event-destination-sns"
  event_destination {
    sns_destination {
      topic_arn = module.sns.topic_arn
    }
    enabled              = true
    matching_event_types = ["SEND", "REJECT", "BOUNCE", "COMPLAINT", "DELIVERY", "RENDERING_FAILURE", "DELIVERY_DELAY", "SUBSCRIPTION"]
  }
}

resource "aws_sesv2_configuration_set" "main" {
  configuration_set_name = "ses-config"
  reputation_options {
    reputation_metrics_enabled = true
  }
  sending_options {
    sending_enabled = true
  }

}

Steps to Reproduce

Deploy, create other change in the same module always will the change.

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 5 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

github-actions[bot] commented 3 weeks ago

[!WARNING] This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

github-actions[bot] commented 3 weeks ago

This functionality has been released in v5.67.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!