Skip to content

Network API not available when creating google_compute_network #67

@glasnt

Description

@glasnt

After merging #61, the following has been observed:

│ Error: Error creating Network: googleapi: Error 403: Compute Engine API has not been used in project 163272504585 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/compute.googleapis.com/overview?project=163272504585 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

...


│
│   with module.dynamic-python-webapp.google_compute_network.gce_init[0],
│   on infra/postdeployment.tf line 17, in resource "google_compute_network" "gce_init":
│   17: resource "google_compute_network" "gce_init" {
│

Quickfix: add depends_on = [ google_project_service.enabled] to new resources, ensuring the order of operations is correct for these resources in the tf order graph

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions