Skip to content

Conversation

@mkhtse
Copy link

@mkhtse mkhtse commented Jun 3, 2025

The use of google-beta was added to accommodate network_profile at the time. It's now GA and the hard-coded beta provider causes the return of URL for nework_profile https://www.googleapis.com/compute/beta/projects/....... when the actual URL from the infrastructure is
networkProfile: https://www.googleapis.com/compute/v1/projects ( v1 instead of beta)
you can validate that by running gcloud compute networks describe

The use of google-beta was added to accommodate network_profile at the time.  It's now GA and the hard-coded beta provider causes the return of URL for nework_profile  "https://www.googleapis.com/compute/beta/projects/......."
when the actual infra is 
"networkProfile: https://www.googleapis.com/compute/v1/projects" ( from gcloud compute networks describe <network>  )
@mkhtse mkhtse requested review from a team and imrannayer as code owners June 3, 2025 14:50
@google-cla
Copy link

google-cla bot commented Jun 3, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@mkhtse mkhtse changed the title Remove hardcoded gcp-beta fix: remove hardcoded gcp-beta Jun 3, 2025
@imrannayer
Copy link
Collaborator

@mkhtse thx for the PR. We decided to keep beta provider in case if we need to add any other beta feature in future..

@mkhtse
Copy link
Author

mkhtse commented Jun 3, 2025

@mkhtse thx for the PR. We decided to keep beta provider in case if we need to add any other beta feature in future..

hi @imrannayer Thanks for the comment. Has any report the conflict related to the URL for network_profile returns beta instead of v1?

This is the problem i'm facing. we work with google, they applied a network profile to an existing VPC network. To sync the config I had to remove the resource from state and re-import it. The issue occurs when I match my TF config with the state file and infrastructure, where the URL return beta when it should be v1. This causes Force replacement for the network object and all the resources references the vpc network subsequently.

@imrannayer imrannayer changed the title fix: remove hardcoded gcp-beta fix!: remove hardcoded gcp-beta in vpc sub-module Jun 4, 2025
@imrannayer
Copy link
Collaborator

@mkhtse thx. Can u plz sign CLA?

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.

2 participants