Setting Up Your Environment

Use the following instructions to set up Cloud Scheduler. You may already have some of these tools installed.

Install and configure the gcloud command line tool:

  1. Install and initialize the Cloud SDK

  2. Add the gcloud components for products:

     gcloud components install
    
  3. Update all components:

     gcloud components update
    

Use gcloud to create a project with an App Engine app.

Or you can use an existing project, if you have one.

  1. Open a terminal on the machine where you installed the Cloud SDK and create a GCP project:

     gcloud projects create [PROJECT_ID]
    

    where [PROJECT_ID] is the ID for the project you want to create. Project IDs must start with a lowercase letter and can have lowercase ASCII letters, digits or hyphens. They must be between 6 and 30 characters.

  2. Configure gcloud to use the project you have chosen:

     gcloud config set project [PROJECT-ID]
    

    where PROJECT_ID is the ID you set previously.

  3. Now create the app:

     gcloud app create [--region=REGION]
    

    where [REGION] is the location in which the app runs. Note that two locations, called europe-west and us-central in App Engine commands, are called, respectively, europe-west1 andus-central1` in Cloud Tasks commands.

    You can check the region of an existing app with the command:

     gcloud app describe
    

    The region is listed by locationId, for example, locationId: us-central.

    Once you set a zone for the App Engine app, you cannot change it.

Use the Google Cloud Platform Console to enable features:

  1. Enable billing for your project

  2. Enable the Cloud Scheduler API

Your project now supports Cloud Scheduler.

هل كانت هذه الصفحة مفيدة؟ يرجى تقييم أدائنا:

إرسال تعليقات حول...

Cloud Scheduler Documentation