GoogleCloudPlatform / reliable-app-platforms

A MVP of a platform for delivering reliable applications on Google Cloud
Apache License 2.0
5 stars 5 forks source link

mci fails to be created, retry fixes it. #64

Open stevemcghee opened 1 month ago

stevemcghee commented 1 month ago

probably needs a depends_on somewhere

Step #4 - "infra-create-gke": google_gke_hub_feature_membership.acm_feature_member["1"]: Creation complete after 26s [id=projects/smcghee-rap-05/locations/global/features/configmanagement/membershipId/prod-us-west2-1]
Step #4 - "infra-create-gke": ╷
Step #4 - "infra-create-gke": │ Error: Error creating Feature: googleapi: Error 400: InvalidValueError for field config_membership: Membership "projects/smcghee-rap-05/locations/global/memberships/config-us-central1" does not exist
Step #4 - "infra-create-gke": │ 
Step #4 - "infra-create-gke": │   with google_gke_hub_feature.gke-config-mci,
Step #4 - "infra-create-gke": │   on mci.tf line 2, in resource "google_gke_hub_feature" "gke-config-mci":
Step #4 - "infra-create-gke": │    2: resource "google_gke_hub_feature" "gke-config-mci" {
Step #4 - "infra-create-gke": │ 
Step #4 - "infra-create-gke": ╵
Step #4 - "infra-create-gke": ERROR
Step #4 - "infra-create-gke": ERROR: build step 0 "hashicorp/terraform:1.8.2" failed: step exited with non-zero status: 1
Step #4 - "infra-create-gke": --------------------------------------------------------------------------------
muncus commented 1 month ago

i'm pretty sure mci needs a depends_on = [ module.fleet-hub ] It looks to me like fleet-hub creates these fleet memberships, which are necessary for MCI enrollment. i've been testing with it, and not seen the above error.