Skip to content

Latest commit

 

History

History

cloud_tasks

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Cloud Tasks

This set of two templates creates a Cloud Task and a Cloud Task Queue.

Prerequisites

Deployment

Resources

Properties

See the properties section in the schema file(s):

Usage

  1. Clone the Deployment Manager samples repository

    git clone https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit
    
  2. Go to the dm directory

    cd dm
    
  3. Create a custom type-provider named cloudtasks

    cp templates/cloud_tasks/examples/create_typeprovider.sh .
    chmod u+x create_typeprovider.sh
    ./create_typeprovider.sh
    
  4. Copy the example DM config to be used as a model for the deployment. In this case, examples/cloud_tasks_queue.yaml

    cp templates/cloud_tasks/examples/cloud_tasks_queue.yaml my_cloud_tasks_queue.yaml
    
  5. Change the values in the config file to match your specific GCP setup. Refer to the properties in the schema files described above.

    vim my_cloud_tasks_queue.yaml
    
  6. Create your deployment as described below, replacing <YOUR_DEPLOYMENT_NAME> with your with your own deployment name

    gcloud beta deployment-manager deployments create <YOUR_DEPLOYMENT_NAME> \
        --config my_cloud_tasks_queue.yaml
    
  7. In case you need to delete your deployment

    gcloud deployment-manager deployments delete <YOUR_DEPLOYMENT_NAME>
    
  8. To delete the custom cloudtasks type-provider

    cp templates/cloud_tasks/examples/delete_typeprovider.sh .
    chmod u+x delete_typeprovider.sh
    ./delete_typeprovider.sh
    

Examples