important-yak-39641
05/14/2025, 7:23 PMfrontend_trigger = gcp.cloudbuild.Trigger(
"frontend-trigger",
name="frontend-trigger",
github={
"owner": github_repo["owner"],
"name": github_repo["repo"],
"push": {
"branch": "^main$",
}
},
filename="frontend/infra/cloudbuild.yaml",
substitutions={
"_REGION": gcp_region, # set to us-west-1
"_REPO": docker_repo, # set to frontend
},
)
when i run pulumi up, i'm getting:
Diagnostics:
pulumi:pulumi:Stack (frontend-dev):
error: update failed
gcp:cloudbuild:Trigger (frontend-trigger):
error: sdk-v2/provider2.go:509: sdk.helper_schema: Error creating Trigger: googleapi: Error 400: Request contains an invalid argument.: provider=google-beta@8.25.0
error: 1 error occurred:
* Error creating Trigger: googleapi: Error 400: Request contains an invalid argument.
i checked all the arguments for frontend_trigger
against the Google source documentation and can't seem to find anything wrong.
am i missing something dumb here?straight-king-8647
05/14/2025, 8:40 PMlocation="us-central1"
)important-yak-39641
05/14/2025, 9:38 PMfrontend_trigger = gcp.cloudbuild.Trigger(
"frontend-trigger",
name="frontend-trigger",
project=gcp_project, <---- added this
github=gcp.cloudbuild.TriggerGithubArgs(
owner=github_repo["owner"],
name=github_repo["repo"],
push=gcp.cloudbuild.TriggerGithubPushArgs(
branch="^main$",
),
),
filename="frontend/infra/cloudbuild.yaml",
service_account=f"projects/{gcp_project}/serviceAccounts/{gcp_service_account_id}", <--- added this
substitutions={
"_REGION": gcp_region,
"_REPO": docker_repo,
},
)
straight-king-8647
05/14/2025, 9:42 PM