Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable import of VPC peering resource for GCP #308

Merged
merged 7 commits into from
Dec 20, 2024
Merged

Conversation

tbroden84
Copy link
Contributor

WHY are these changes introduced?

The resource cloudamqp_vpc_gcp_peering lacks import functionality and got requested in #307. Without having this, the resource needs to be re-created. Meaning the peering will be removed before added again. This causes downtime, when just to synchronizing the state.

WHAT is this pull request doing?

  • Adds import functionality to the cloudamqp_vpc_gcp_peering resource
  • Updates documentation
  • Adds Go VCR test for create and import

HOW can this pull request be tested?

Run VCR test.

@tbroden84 tbroden84 requested a review from dentarg December 18, 2024 10:22
@tbroden84 tbroden84 merged commit 6e0f47b into main Dec 20, 2024
2 checks passed
@tbroden84 tbroden84 deleted the gcp-vpc-peering/import branch December 20, 2024 09:03
tbroden84 added a commit that referenced this pull request Dec 20, 2024
### WHY are these changes introduced?

The resource `cloudamqp_vpc_peering` lacks import functionality. This got requested way back in: #158.
We found a way to enable this for GCP #308, take a similar approach for AWS. 

### WHAT is this pull request doing?

- Adds import functionality to the `cloudamqp_vpc_peering` resource
- Updates documentation
- Adds Go VCR test for accept and import

### HOW can this pull request be tested?

Run VCR test for accepting the peering and importing the resource.
Limited from the complete flow to not mix in the AWS provider in the test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant