Skip to content

Commit 0ac7ba9

Browse files
committed
internal/sweep: Skip InternalServerErrorException
``` 2025/07/29 17:03:08 - aws_prometheus_scraper: listing "aws_prometheus_scraper" (us-west-1): operation error amp: ListScrapers, exceeded maximum number of attempts, 5, https response error StatusCode: 500, RequestID: 7fcd350e-6973-48a1-8c10-9d3458fc856c, api error InternalServerErrorException: Internal server error ```
1 parent 01ddd96 commit 0ac7ba9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/sweep/awsv2/skip.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ func SkipSweepError(err error) bool {
4545
if tfawserr.ErrMessageContains(err, "HttpConnectionTimeoutException", "Failed to connect to") {
4646
return true
4747
}
48+
// Example (amp): InternalServerErrorException: Internal server error
49+
if tfawserr.ErrMessageContains(err, "InternalServerErrorException", "Internal server error") {
50+
return true
51+
}
4852
// Example (GovCloud): InvalidAction: DescribeDBProxies is not available in this region
4953
if tfawserr.ErrMessageContains(err, "InvalidAction", "is not available") {
5054
return true

0 commit comments

Comments
 (0)