Create new service in gcp app engine

Here are the steps to create a new service in Google Cloud Platform (GCP) App Engine:

Prerequisites:

  1. You have a GCP account and are logged in to the Google Cloud Console.
  2. You have created a new App Engine project or have an existing one.

Step 1: Navigate to the App Engine dashboard

  1. Go to the Google Cloud Console and navigate to the App Engine dashboard by clicking on the "Navigation menu" (three horizontal lines in the top left corner) and selecting "App Engine".
  2. Select the region where you want to create the new service (e.g., "us-central1").

Step 2: Create a new service

  1. Click on the "Services" tab in the App Engine dashboard.
  2. Click on the "Create service" button.
  3. Fill in the required information:
    • Service ID: Enter a unique ID for your service (e.g., "my-new-service").
    • Service name: Enter a name for your service (e.g., "My New Service").
    • Runtime: Select the runtime environment for your service (e.g., "Node.js 14", "Python 3.9", etc.).
    • Instance class: Select the instance class for your service (e.g., "F1", "F2", etc.).
  4. Click on the "Create" button to create the new service.

Step 3: Configure the service

  1. Once the service is created, you will be taken to the service configuration page.
  2. Configure the service settings as needed:
    • Handler: Select the handler for your service (e.g., "index.js", "app.py", etc.).
    • Port: Enter the port number for your service (e.g., 8080).
    • API endpoint: Enter the API endpoint for your service (e.g., "/api/my-endpoint").
  3. Click on the "Save" button to save the service configuration.

Step 4: Deploy the service

  1. To deploy the service, you need to create a new version of the service.
  2. Click on the "Versions" tab in the service configuration page.
  3. Click on the "Create version" button.
  4. Fill in the required information:
    • Version ID: Enter a unique ID for your version (e.g., "v1").
    • Source: Select the source code for your service (e.g., "Local", "Cloud Storage", etc.).
  5. Click on the "Create" button to create the new version.
  6. Once the version is created, you can deploy the service by clicking on the "Deploy" button.

That's it! You have now created a new service in GCP App Engine.