GCP Playground is not allowing me to use Deployment Manager to create VM resource using

Why I don’t have access to Deployment Manager in GCP ?
image

I cant use the GCP playground for VM creation using Deployment Manager ?

Please help

I can’t really do anything with a JPG of your vm.yaml; to even try this, I"d need actuall yaml; please post it using a

code block (the </> key in the edit widget)
  * creates the block
  * will prevent your YAML from being corrupted
  * will preserve indentation

It appears that we allow the use of GCP’s cloud deployment manager, but you’ll need to give me something to try so I can see what you’re trying to do; this would include the YAML and and the gcloud commands that you want to do.

1 Like

Hi @rob_kodekloud, Please try now.

resources:
- name: vm-created-by-deployment-manager
  type: compute.v1.instance
  properties:
    zone: us-central1-a
    machineType: zones/us-central1-a/machineTypes/n1-standard-1
    disks:
    - deviceName: boot
      type: PERSISTENT
      boot: true
      autoDelete: true
      initializeParams:
        sourceImage: projects/debian-cloud/global/images/family/debian-11
    networkInterfaces:
    - network: global/networks/default

Thank you!

I tried to open the Deployment Manager itself but has access restrictions.

I’m not sure if this is something we should allow or not, so I’ve asked our engineers what they think. We’ll see what they say.

I tried couldskillboost.google 's labs, they are allowing deployment manger, but kodekloud isn’t. :frowning:

Howdy – engineering tells me they’ve fixed this. I just ran your file (I called it config.yaml) using the gcloud command, and it works:

odl_user_1488563@cloudshell:~ (clgcporg8-016)$ gcloud deployment-manager deployments create gcloud-kk-test --config config.yaml
The fingerprint of the deployment is b'wgI1QzkcrDo58rlujaQ1eA=='
Waiting for create [operation-1729212217193-624b597f27539-76e4c64f-45c5e858]...done.                                                                                  
Create operation operation-1729212217193-624b597f27539-76e4c64f-45c5e858 completed successfully.
NAME: vm-created-by-deployment-manager
TYPE: compute.v1.instance
STATE: COMPLETED
ERRORS: []
INTENT: 

Should work for you too.