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

google_compute_region_network_endpoint_group.cloudrun_neg does not use region configured for resource on import attempt #21708

Open
tomlockwood opened this issue Mar 5, 2025 · 0 comments
Labels

Comments

@tomlockwood
Copy link

Community Note

Output from terraform plan:

  # google_compute_region_network_endpoint_group.cloudrun_neg will be created
  + resource "google_compute_region_network_endpoint_group" "cloudrun_neg" {
      + id                    = (known after apply)
      + name                  = "***"
      + network_endpoint_type = "SERVERLESS"
      + project               = "***"
      + region                = "australia-southeast2"
      + self_link             = (known after apply)

      + cloud_run {
          + service = "***"
        }

      + psc_data (known after apply)
    }

Output from terraform import google_compute_region_network_endpoint_group.cloudrun_neg ***:

google_compute_region_network_endpoint_group.cloudrun_neg: Importing from ID "***"...
google_compute_region_network_endpoint_group.cloudrun_neg: Import prepared!
  Prepared google_compute_region_network_endpoint_group for import
google_compute_region_network_endpoint_group.cloudrun_neg: Refreshing state... [id=projects/***/regions/australia-southeast1/networkEndpointGroups/***]
╷
│ Error: Cannot import non-existent remote object
│ 
│ While attempting to import an existing object to "google_compute_region_network_endpoint_group.cloudrun_neg", the provider detected that no object exists with the given id. Only pre-existing objects can be
│ imported; check that the id is correct and that it is associated with the provider's configured region or endpoint, or use "terraform apply" to create a new remote object for this resource.
╵

Seemed to be reading from provider "google-beta" { region = ... }

Terraform Version & Provider Version(s)

Terraform v1.11.0
on macosx

  • provider registry.terraform.io/hashicorp/google v6.8.0
  • provider registry.terraform.io/hashicorp/google-beta v6.24.0

Affected Resource(s)

google_compute_region_network_endpoint_group

Terraform Configuration

Debug Output

No response

Expected Behavior

No response

Actual Behavior

No response

Steps to reproduce

  1. terraform apply

Important Factoids

No response

References

No response

@tomlockwood tomlockwood added the bug label Mar 5, 2025
@github-actions github-actions bot added forward/review In review; remove label to forward service/compute-networking-neg labels Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant