GoogleCloudPlatform / GoogleCloudPlatform/deploymentmanager-samples
Google deployment manager hierarchical configuration with "Organization_with_departments"
- Dominant language
- Jinja
- Stars
- 951
- Forks
- 700
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I have cloned the repo at https://github.com/GoogleCloudPlatform/deploymentmanager-samples/tree/master/community/hierarchical_configuration/Organization_with_departments
I uncommented the code in env_demo_project.py to return resources and outputs.
I have followed the instructions mentioned and while running `gcloud deployment-manager deployments create hierarchy-org-example-dev --template env_demo_project.py --properties=envName:dev`, I get the following error:
```
ERROR: (gcloud.deployment-manager.deployments.update) Error in Operation [operation-1564632303149-58f0658a2218c-8ce00982-a115f932]: errors:
- code: MANIFEST_EXPANSION_USER_ERROR
location: /deployments/hierarchy-org-example-dev/manifests/manifest-1564632303171
message: |-
Manifest expansion encountered the following errors: Exception in env_demo_project.py
Traceback (most recent call last):
return constructor[m](evaluation_context)
File "", line 28, in GenerateConfig
KeyError: 'HQ_Address'
Resource: env_demo_project.py Resource: config
```
I have set the symbolic links for org_config.py and department_config.py as well, but I keep running into this issue.
I am not sure if this is a bug or is I am missing something, I have followed instructions properly.
Regards,
Giriraj
Contributor guide
Assessment
This issue has not been assessed yet.