diff --git a/resources/services/s3/buckets.go b/resources/services/s3/buckets.go index 51d9c5d47..92bae0cd9 100644 --- a/resources/services/s3/buckets.go +++ b/resources/services/s3/buckets.go @@ -545,7 +545,7 @@ func resolveS3BucketsAttributes(ctx context.Context, meta schema.ClientMeta, res output, err := mgr.GetBucketRegion(ctx, *resource.Name) if err != nil { - if c.IsNotFoundError(err) { + if isBucketNotFoundError(c, err) { return nil } return diag.WrapError(err)