diff --git a/.ci/semgrep/acctest/checks/arn.yml b/.ci/semgrep/acctest/checks/arn.yml index 2b62ef211ee..e0bd8c529fc 100644 --- a/.ci/semgrep/acctest/checks/arn.yml +++ b/.ci/semgrep/acctest/checks/arn.yml @@ -4,7 +4,6 @@ rules: message: Use one of the `acctest` ARN value checks or TestCheckResourceAttrPair paths: exclude: - - "internal/service/configservice" - "internal/service/connect" - "internal/service/controltower" - "internal/service/datazone" diff --git a/internal/service/configservice/aggregate_authorization_test.go b/internal/service/configservice/aggregate_authorization_test.go index 75fb2e1f05c..220adb5260f 100644 --- a/internal/service/configservice/aggregate_authorization_test.go +++ b/internal/service/configservice/aggregate_authorization_test.go @@ -35,7 +35,7 @@ func TestAccConfigServiceAggregateAuthorization_basic(t *testing.T) { Config: testAccAggregateAuthorizationConfig_basic(accountID), Check: resource.ComposeTestCheckFunc( testAccCheckAggregateAuthorizationExists(ctx, resourceName, &aa), - resource.TestCheckResourceAttrSet(resourceName, names.AttrARN), + acctest.CheckResourceAttrRegionalARNFormat(ctx, resourceName, names.AttrARN, "config", "aggregation-authorization/{account_id}/{region}"), resource.TestCheckResourceAttr(resourceName, names.AttrAccountID, accountID), resource.TestCheckResourceAttr(resourceName, names.AttrRegion, acctest.Region()), ),