GoogleCloudPlatform / GoogleCloudPlatform/anthos-samples
anthos-samples /anthos-bm-gcp-terraform failing cluster deployment
- Dominant language
- HCL
- Stars
- 106
- Forks
- 137
- PR merge metrics
- No merged PRs in 30d
Description
I'm following the instructions [here](https://github.com/GoogleCloudPlatform/anthos-samples/blob/main/anthos-bm-gcp-terraform/docs/quickstart.md) and [here](https://github.com/GoogleCloudPlatform/anthos-samples/blob/main/anthos-bm-gcp-terraform/docs/quickstart.md), both for manual and all-in-one-install of a bare metal cluster using vxlan on GCE.
Both installation attempts fail at the Deleting bootstrap cluster step in the abm cluster installation from the admin workstation with the error:
```text
[2025-09-11 17:57:37+0000] Installing dependency components... OK
[2025-09-11 17:59:18+0000] Deleting bootstrap cluster... OK
[2025-09-11 17:59:21+0000] exit with error
[2025-09-11 17:59:21+0000] Error creating cluster: 1 error occurred:
* API cloudresourcemanager.googleapis.com is not enabled in project [REDACTED]
```
This error can also be seen in the `create-cluster.log` file:
```text
I0912 07:49:07.904933 5034 apply.go:64] Create Kind Cluster "msg"="deployment.apps/cluster-metrics-webhook created\n"
E0912 07:49:34.803541 5034 create_cluster.go:175] "msg"="Failed to run preflight checks" "error"="1 error occurred:\n\t* API cloudresourcemanager.googleapis.com is not enabled in project [REDACTED]\n\n"
I0912 07:49:34.803647 5034 kind.go:620] Canceling containerd restarter...
E0912 07:49:38.145319 5034 console.go:110] exit with error
E0912 07:49:38.145400 5034 console.go:110] Error creating cluster: 1 error occurred:
* API cloudresourcemanager.googleapis.com is not enabled in project [REDACTED]
```
However, the API is enabled in the project:
```bash
gcloud services list --enabled | grep -i cloudresourcemanager
cloudresourcemanager.googleapis.com Cloud Resource Manager API
```
Contributor guide
Assessment
This issue has not been assessed yet.