Skip to content

docs: 📝 fix error in phpIPAM terraform config by updating VPC pe… #2230

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

Merged
merged 2 commits into from
Apr 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions blueprints/third-party-solutions/phpipam/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,3 +238,28 @@ module "test" {
}
# tftest modules=8 resources=47
```

## Bugs and errors

If you've deployed the phpIPAM terraform configuration, destroyed it, and set it up again, you might stumble upon this error:
```
│ Error: Error waiting for Create Service Networking Connection: Error code 9, message: Cannot modify allocated ranges in CreateConnection. Please use UpdateConnection.
│ Help Token: <token>
│ with module.vpc[0].google_service_networking_connection.psa_connection["servicenetworking.googleapis.com"],
│ on ../../../modules/net-vpc/psa.tf line 61, in resource "google_service_networking_connection" "psa_connection":
│ 61: resource "google_service_networking_connection" "psa_connection" {
```
This can be solved by running this command:
```bash
gcloud beta services vpc-peerings update \
--service=servicenetworking.googleapis.com \
--ranges=[your-private-connection-range-name] \
--network=[your-vpc-name] \
--project=[your-project-id] \
--force
```
After it has finished updating, try running `terraform apply` again and it should work.