Google Cloud Platform + Mongo Atlas
1. Set up Mongo Atlas
To set up MongoDB Atlas, you can follow these steps:
- Go to the MongoDB Atlas website and sign in or create an account. Click here
- Click on the "Get started for free" button or choose the "Build a cluster" option from the dashboard.
- Select a cloud provider (e.g., AWS, Google Cloud, Azure) and choose the region where you want your database to be hosted. You can also select a specific version of MongoDB if needed.
- Choose the cluster tier based on your requirements. MongoDB Atlas provides various options with different performance levels and features. You can start with the free tier or choose a paid tier depending on your needs.
- Configure additional cluster settings:
- Enter a Cluster Name for identification purposes.
- Adjust the Additional Settings if needed, such as the number of nodes, replication factor, etc.
- Expand the Advanced Options if you require custom configurations.
- Set up additional features:
- Enable or disable the features you need, such as backup options, monitoring, or data privacy settings.
- Configure these options according to your preferences and requirements.
- Click on the "Create Cluster" or "Build Cluster" button to initiate the provisioning process. MongoDB Atlas will create and configure the cluster based on your selections. This process may take a few minutes.
- Once the cluster is ready, you will be redirected to the Cluster Details page. Here, you can monitor the status, manage cluster settings, and access other features.
- Set up network access and security:
- Go to the "Security" tab within the Cluster Details page.
- Configure the IP Whitelist to allow access to your database. You can add specific IP addresses or enable access from anywhere (0.0.0.0/0). It's recommended to restrict access to known IP addresses for security purposes.
- Connect to your MongoDB Atlas cluster:
- Click on the "Connect" button on the Cluster Details page.
- Choose the connection method based on your application's requirements. Options include MongoDB Compass, application connection string, or drivers.
- Follow the instructions provided for your chosen connection method. MongoDB Atlas provides step-by-step instructions specific to your selected method, including connection string examples, authentication details, and necessary configurations.
Once you have completed these steps, your MongoDB Atlas cluster will be set up and ready for use. You can start connecting your applications or tools to the cluster using the provided connection string and access your MongoDB database in the cloud.

Remember to check the connection string of your database such as mongodb+srv://hogehoge
.
2. Set up a Cloud Storage bucket
To set up a Cloud Storage bucket on Google Cloud Platform (GCP), you can follow these steps:
- Go to the GCP Console and sign in or create an account. Click here