Skip to content

Commit 9ef58be

Browse files
authored
Merge pull request #43593 from hashicorp/td-sweeper-skip
internal/sweep: Additional skippable errors
2 parents 2100766 + 0ac7ba9 commit 9ef58be

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

internal/sweep/awsv2/skip.go

Lines changed: 8 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
@@ -130,6 +134,10 @@ func SkipSweepError(err error) bool {
130134
if tfawserr.ErrMessageContains(err, "UnsupportedOperation", "The functionality you requested is not available in this region") {
131135
return true
132136
}
137+
// Example (fsx): UnsupportedOperation: This operation is unsupported.
138+
if tfawserr.ErrMessageContains(err, "UnsupportedOperation", "This operation is unsupported") {
139+
return true
140+
}
133141
// For example from us-west-1 EMR studio
134142
if tfawserr.ErrMessageContains(err, "ValidationException", "Account is not whitelisted to use this feature") {
135143
return true

0 commit comments

Comments
 (0)