Skip to content

Commit

Permalink
Handle a case when a connection is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
shuheiktgw committed Dec 15, 2020
1 parent c691946 commit 91c5f2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aws/resource_aws_codestarconnections_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ func resourceAwsCodeStarConnectionsConnectionDelete(d *schema.ResourceData, meta
})

if err != nil {
if isAWSErr(err, codestarconnections.ErrCodeResourceNotFoundException, "") {
return nil
}

return fmt.Errorf("error deleting CodeStar connection: %w", err)
}

Expand Down

0 comments on commit 91c5f2d

Please sign in to comment.