Google Cloud Deployment Manager is an infrastructure deployment service that automates the creation and management of Google Cloud Platform resources.
Questions tagged [google-deployment-manager]
252 questions
16
votes
1 answer
Is there any way to print to stdout, stderr, or log files in google deployment manager?
I would like to write debug information in my DM templates, but I cannot see nor find a way to generate print statements, logs, or anything to aid in debugging when something goes wrong with my template.
How do I add print or logging to deployment…

user3325789
- 393
- 1
- 12
10
votes
1 answer
GCP grant a service account permission to write in a GCS bucket with Deployment Manager
In a Deployment Manager Jinja template I'm trying to create log sinks:
- name: {{ ALOGSINK }}
type: gcp-types/logging-v2:projects.sinks
properties:
sink: {{ ALOGSINK }}
parent: projects/{{ PROJECT }}
uniqueWriterIdentity: true
…

Milen A. Radev
- 60,241
- 22
- 105
- 110
8
votes
1 answer
GCP Deployment Manager: 403 does not have storage.buckets.get access
I am trying to create a bucket using Deployment manager but when I want to create the deployment, I get the following error:
ERROR: (gcloud.deployment-manager.deployments.create) Error in Operation…

Jan
- 1,268
- 4
- 12
- 20
7
votes
0 answers
Can I deploy Cloud Run using Deployment Manager?
I'm trying to figure out if I can use Google Deployment Manager to deploy a service to Cloud Run. If not is this on the roadmap?
https://cloud.google.com/deployment-manager/docs/configuration/supported-resource-types

anishkny
- 421
- 1
- 3
- 8
7
votes
4 answers
How to include firewall in VM instance creation by DeploymentManager in GCP
my yaml template is as follows, I want to add firewall property to allow http traffic:
resources:
- name: deployed-vm2222
type: compute.v1.instance
properties:
zone: us-central1-f
machineType:…

A.JRJ
- 331
- 1
- 5
- 16
7
votes
1 answer
Google cloud deployment manager update Container cluster
I'm trying to create a Google Cloud Deployment Manager configuration to deploy and manage a Google Cloud Container cluster. So far, creating a configuration to create a cluster works, however updating fails. If I change a setting, the execution of…

Jeroen Benckhuijsen
- 71
- 1
6
votes
4 answers
Deployment Manager update error: Deployment in preview must not have a target with UPDATE
Every time I try to run an update through deployment manager to an existing deployment in preview, I get the error:
$ gcloud deployment-manager deployments update abc --config abc.yaml
ERROR: (gcloud.deployment-manager.deployments.update)…

John S
- 130
- 6
5
votes
1 answer
How to set pubsub message filter while creating cloud-function with triggerTopic
I was trying to create a google cloud function which can be triggered by a pubsub topic. I used the google deployment manager template for creating it. But I couldn't find any way to set the subscriber message filter for that cloud function.
I tried…

xalien
- 123
- 1
- 8
5
votes
2 answers
'403 Permission denied while getting Drive credentials' when using Deployment Manager to create an 'external table' in BigQuery
Steps to reproduce:
Create sheet in Google Sheets
Enable Deployment Manager & Google Drive API in Google Cloud Platform
add deployment manager service-account with view permissions on sheet
Create dataset with deployment manager
Create table with…

MousyBusiness
- 188
- 2
- 14
5
votes
2 answers
Does Deployment Manager have Cloud Functions support (and support for having multiple cloud functions)?
I'm looking at this repo and very confused about what's happening here: https://github.com/GoogleCloudPlatform/deploymentmanager-samples/tree/master/examples/v2/cloud_functions
In other Deployment Manager examples I see the "type" is set to the type…

red888
- 27,709
- 55
- 204
- 392
5
votes
2 answers
Frequent RESOURCE_EXHAUSTED errors
I'm getting into the Google Cloud Deployment Manager lately but struggling with some strange errors. Maybe someone here will have some idea as to the cause.
Typically I will "create" a deployment in preview mode, then once I see it in the GUI I will…

Randy L
- 14,384
- 14
- 44
- 73
4
votes
1 answer
How to set IAM policy to Cloud Function with Deployment Manager
I want to deploy a Cloud Function with a specific IAM policy by Deployment Manager. My deployment.yml:
resources:
- type: gcp-types/cloudfunctions-v1:projects.locations.functions
name: test-function
properties:
parent:…

Valerii Bosiak
- 53
- 7
4
votes
1 answer
Google Deployment Manager pass command line parameters to --config files like you can with templates
https://cloud.google.com/deployment-manager/docs/configuration/templates/define-template-properties
--properties is only supported for Jinja templates:
gcloud deployment-manager deployments create a-single-vm --template vm_template.jinja \
…

red888
- 27,709
- 55
- 204
- 392
4
votes
2 answers
Google Cloud - Private service connection for CloudSQL using Deployment Manager
I'm trying to automate the deployment of a system using deployment manager. In essence, it's comprised of:
One compute instance running a proxy server
A second compute instance running the app itself (private IP only)
A CloudSQL instance hosting…

alitheg
- 540
- 5
- 18
4
votes
1 answer
Generating a Jinja/YAML template for an existing resource in GCP
I am looking forward to create a YAML template for an existing VM Instance resource in a GCP project. Is there a way to generate a Jinja Template/YAML file for an existing VM Resource in a GCP Project?

Manoj Mathai
- 41
- 2