metadata dependsOn not work in serverless framework template for GCP deployment manager

73 Views Asked by At

I want to create dependencies between resource services and find metadata:dependsOn is used in Deployment manager template.

However, when I applied the same syntax to serverless.yml, the resource that depends on the creation of others was not created. Checking the status of the services that it depends on, they were all created, and no errors showed up on deployment manager console about the resource itself and those it depends on.

is this a syntax issue? I do not find such example about resource dependency on the serverless gcp document.

1

There are 1 best solutions below

1
Ray John Navarro On

Based on the documentation in creating explicit dependencies, it states that you cannot set a dependency on template files or composite types.[1] Attached are some documentation to better understand how you can achieve your goals. [2][3]

[1] https://cloud.google.com/deployment-manager/docs/configuration/create-explicit-dependencies

[2] https://cloud.google.com/deployment-manager/docs/fundamentals#types

[3] https://cloud.google.com/deployment-manager/docs/configuration/supported-resource-types