Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Handle gone VPC resources#42

Merged
tbroden84 merged 7 commits intomainfrom
handle-gone-resources
Dec 12, 2023
Merged

Handle gone VPC resources#42
tbroden84 merged 7 commits intomainfrom
handle-gone-resources

Conversation

@tbroden84
Copy link
Copy Markdown
Contributor

@tbroden84 tbroden84 commented Nov 29, 2023

WHY are these changes introduced?

Reported issues when trying to delete VPCs that has already been deleted when using our CloudAMQP Terraform provider. This can happen if deleting the instance without setting keep_associated_vpc = true and running terraform destroy. Extend the status code handling to respond with a warning instead of throwing an error.

Require: https://github.com/84codes/customer-console/pull/271

WHAT is this pull request doing?

  • Handle status code 410 (gone) for the VPC
  • Prepare to handle status code 410 (gone) for the instance
  • Clean up the code

HOW can this pull request be tested?

Manual tested locally against our CloudAMQP Terraform provider. By destroying the instance (with keep_associated_vpc = false) before destroying the VPC.

@tbroden84 tbroden84 requested a review from dentarg December 4, 2023 16:24
@tbroden84 tbroden84 marked this pull request as ready for review December 4, 2023 16:24
@tbroden84 tbroden84 changed the title Handle gone Instance and VPC resources Handle gone VPC resources Dec 12, 2023
@tbroden84 tbroden84 merged commit a70637c into main Dec 12, 2023
@tbroden84 tbroden84 deleted the handle-gone-resources branch December 12, 2023 07:28
tbroden84 added a commit that referenced this pull request Dec 12, 2023
### WHY are these changes introduced?

Reported issues when trying to delete VPCs that has already been deleted when using our CloudAMQP Terraform provider. This can happen if deleting the instance without setting `keep_associated_vpc = true` and running `terraform destroy`. Extend the status code handling to respond with a warning instead of throwing an error.

Require: 84codes/customer-console#271

### WHAT is this pull request doing?

- Handle status code 410 (gone) for the VPC
- Prepare to handle status code 410 (gone) for the instance
- Clean up the code

### HOW can this pull request be tested?

Manual tested locally against our CloudAMQP Terraform provider. By destroying the instance (with `keep_associated_vpc = false`) before destroying the VPC.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant