Create new service in gcp app engine
Here are the steps to create a new service in Google Cloud Platform (GCP) App Engine:
Prerequisites:
- You have a GCP account and are logged in to the Google Cloud Console.
- You have created a new App Engine project or have an existing one.
Step 1: Navigate to the App Engine dashboard
- 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".
- Select the region where you want to create the new service (e.g., "us-central1").
Step 2: Create a new service
- Click on the "Services" tab in the App Engine dashboard.
- Click on the "Create service" button.
- 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.).
- Click on the "Create" button to create the new service.
Step 3: Configure the service
- Once the service is created, you will be taken to the service configuration page.
- 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").
- Click on the "Save" button to save the service configuration.
Step 4: Deploy the service
- To deploy the service, you need to create a new version of the service.
- Click on the "Versions" tab in the service configuration page.
- Click on the "Create version" button.
- 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.).
- Click on the "Create" button to create the new version.
- 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.