# google-cloud


04/02/2020, 2:07 AM
Hello guys!! What is the best practice to wait for the resource before applying further changes in GCP and Typescript? I have following flow: Project -> enable API -> enable Role
const myProject = new gcp.organizations.Project("gcp proj", settings)
const service = new gcp.projects.Service("Kubernetes Engine API", {
disableDependentServices: true,
project: myProject.projectId,
service: "<|>",
And then I want to grand permission to the service account (created by default by
const iamMember = new gcp.projects.IAMMember("iamMember", {
project:  myProject.projectId,
role: "roles/compute.securityAdmin",
Copy code
});` But this generates error:
googleapi: Error 400: Service account <|> does not exist
When I run the
pulumi up
again then it works as service account has been already provisioned by that time by GCP. Is there any way to pull status of the service account and wait if not yet created before calling enabling the role.