diff --git a/.changelog/21188.txt b/.changelog/21188.txt new file mode 100644 index 00000000000..87eead8a2c4 --- /dev/null +++ b/.changelog/21188.txt @@ -0,0 +1,3 @@ +```release-note:bug +resource/aws_ses_configuration_set: Fix ARN +``` diff --git a/aws/resource_aws_ses_configuration_set.go b/aws/resource_aws_ses_configuration_set.go index 3f59896b966..bf91808cb94 100644 --- a/aws/resource_aws_ses_configuration_set.go +++ b/aws/resource_aws_ses_configuration_set.go @@ -159,7 +159,7 @@ func resourceAwsSesConfigurationSetRead(d *schema.ResourceData, meta interface{} arn := arn.ARN{ Partition: meta.(*AWSClient).partition, - Service: ses.ServiceName, + Service: "ses", Region: meta.(*AWSClient).region, AccountID: meta.(*AWSClient).accountid, Resource: fmt.Sprintf("configuration-set/%s", d.Id()), diff --git a/aws/resource_aws_ses_configuration_set_test.go b/aws/resource_aws_ses_configuration_set_test.go index 16a5f322a61..09e73bfa158 100644 --- a/aws/resource_aws_ses_configuration_set_test.go +++ b/aws/resource_aws_ses_configuration_set_test.go @@ -84,7 +84,7 @@ func TestAccAWSSESConfigurationSet_basic(t *testing.T) { Config: testAccAWSSESConfigurationSetBasicConfig(rName), Check: resource.ComposeTestCheckFunc( testAccCheckAwsSESConfigurationSetExists(resourceName), - testAccCheckResourceAttrRegionalARN(resourceName, "arn", ses.ServiceName, fmt.Sprintf("configuration-set/%s", rName)), + testAccCheckResourceAttrRegionalARN(resourceName, "arn", "ses", fmt.Sprintf("configuration-set/%s", rName)), resource.TestCheckResourceAttr(resourceName, "name", rName), resource.TestCheckResourceAttr(resourceName, "delivery_options.#", "0"), resource.TestCheckResourceAttr(resourceName, "sending_enabled", "true"),