diff --git a/.changelog/35056.txt b/.changelog/35056.txt new file mode 100644 index 000000000000..33ad069de133 --- /dev/null +++ b/.changelog/35056.txt @@ -0,0 +1,3 @@ +```release-note:bug +resource/aws_ses_configuration_set: Fix `tracking_options` being omitted from state and resulting in persistent diff +``` diff --git a/internal/service/ses/configuration_set.go b/internal/service/ses/configuration_set.go index 4f51991a4b64..45b992aa9cb6 100644 --- a/internal/service/ses/configuration_set.go +++ b/internal/service/ses/configuration_set.go @@ -168,7 +168,9 @@ func resourceConfigurationSetRead(ctx context.Context, d *schema.ResourceData, m ConfigurationSetName: aws.String(d.Id()), ConfigurationSetAttributeNames: aws.StringSlice([]string{ ses.ConfigurationSetAttributeDeliveryOptions, - ses.ConfigurationSetAttributeReputationOptions}), + ses.ConfigurationSetAttributeReputationOptions, + ses.ConfigurationSetAttributeTrackingOptions, + }), } response, err := conn.DescribeConfigurationSetWithContext(ctx, configSetInput) diff --git a/website/docs/r/ses_configuration_set.html.markdown b/website/docs/r/ses_configuration_set.html.markdown index 4ca5a3cb4cc3..58b7de7ab9f6 100644 --- a/website/docs/r/ses_configuration_set.html.markdown +++ b/website/docs/r/ses_configuration_set.html.markdown @@ -12,6 +12,8 @@ Provides an SES configuration set resource. ## Example Usage +### Basic Example + ```terraform resource "aws_ses_configuration_set" "test" { name = "some-configuration-set-test" @@ -30,6 +32,18 @@ resource "aws_ses_configuration_set" "test" { } ``` +### Tracking Options + +```terraform +resource "aws_ses_configuration_set" "test" { + name = "some-configuration-set-test" + + tracking_options { + custom_redirect_domain = "sub.example.com" + } +} +``` + ## Argument Reference The following argument is required: