diff --git a/google/resource_cloudbuild_build_trigger.go b/google/resource_cloudbuild_build_trigger.go index a4236ed2e94..4a96e5a4315 100644 --- a/google/resource_cloudbuild_build_trigger.go +++ b/google/resource_cloudbuild_build_trigger.go @@ -191,7 +191,7 @@ func expandCloudbuildBuildTriggerTemplate(d *schema.ResourceData, project string return nil } tmpl := &cloudbuild.RepoSource{} - if v, ok := d.GetOk("project"); ok { + if v, ok := d.GetOk("trigger_template.0.project"); ok { tmpl.ProjectId = v.(string) } else { tmpl.ProjectId = project