Skip to content

Commit

Permalink
Merge pull request #37127 from dhrkumar/b-capacity-reservation-not-found
Browse files Browse the repository at this point in the history
Fix aws_ec2_capacity_reservation causing failure if removed outside Terraform
  • Loading branch information
ewbankkit authored Jun 11, 2024
2 parents 93729c5 + 00081ce commit b1249d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/37127.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_ec2_capacity_reservation: Fix `InvalidCapacityReservationId.NotFound` errors during Read and Delete when resource is manually deleted
```
2 changes: 1 addition & 1 deletion internal/service/ec2/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const (
errCodeInvalidAssociationIDNotFound = "InvalidAssociationID.NotFound"
errCodeInvalidAssociationNotFound = "InvalidAssociation.NotFound"
errCodeInvalidAttachmentIDNotFound = "InvalidAttachmentID.NotFound"
errCodeInvalidCapacityReservationIdNotFound = "InvalidCapacityReservationId.NotFound'"
errCodeInvalidCapacityReservationIdNotFound = "InvalidCapacityReservationId.NotFound"
errCodeInvalidCarrierGatewayIDNotFound = "InvalidCarrierGatewayID.NotFound"
errCodeInvalidClientVPNActiveAssociationNotFound = "InvalidClientVpnActiveAssociationNotFound"
errCodeInvalidClientVPNAssociationIdNotFound = "InvalidClientVpnAssociationIdNotFound"
Expand Down

0 comments on commit b1249d2

Please sign in to comment.