Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
No Result
View All Result
Home Google Cloud Compute Engine

Secure your website on Google Cloud Platform

by Cloudbooklet
5 years ago
in Compute Engine, Google Cloud
Secure Your Website On Google Cloud Platform
ShareTweetSendShare
Readers like you help support Cloudbooklet. When you make a purchase using links on our site, we may earn an affiliate commission.

Let’s assume you planned to move to Google Cloud Platform or give a try in the GCP and migrated your website or created a new VM Instance in Compute Engine and developed your website. Now you are happy with the performance and speed of your website. Now what are the issues you may face and […]

ADVERTISEMENT

Let’s assume you planned to move to Google Cloud Platform or give a try in the GCP and migrated your website or created a new VM Instance in Compute Engine and developed your website. Now you are happy with the performance and speed of your website. Now what are the issues you may face and how will you recover your website if you encounter any such problems.

This guide will help you to secure your website from various issues by preserving your data and keep your website live without any downtime.

What are the issues you can face in Compute Engine

  • Accidentally deleted your VM Instance
  • IP address changes often
  • Compute Engine Instance cannot restart
  • Cannot access SSH
  • Website is down

Below are some must do things on Google Cloud to secure your website from the above-mentioned problems

ADVERTISEMENT

Accidentally deleted VM Instance

This happens to everyone in many different situations like

You might also like

How To Setup Ssh Keys On Ubuntu

How to Setup SSH Keys on Ubuntu 20.04

4 months ago
Draggan Ai Editing Tool Install And Use Draggan Photo Editor

DragGAN AI Editing Tool Install and Use DragGAN Photo Editor

4 months ago
  • You try to delete some other instance and check the checkbox of your instance and didn’t notice that you also checked the main instance and clicked the delete button.
  • Trying to stop the instance but mistakenly clicked the delete button

These are some accidents that happen by human error

So, to prevent these errors there are some must do things while setting up a Compute Engine Instance.

ADVERTISEMENT

When creating a VM instance below the Firewall settings click the Management to expand additional settings. Now enable the Delete protection. When this is enabled you cannot delete the instance accidentally.

If you already have an instance running, you can just edit the instance and enable the Delete protection.

ADVERTISEMENT

If you want to delete the instance you can disable the delete protection whenever you need.

This will help you from accidentally deleting the VM instance

ADVERTISEMENT

IP address changes often

This is the normal behavior of every instance that is assigned an External IP address.

Whenever the instance restarts the IP address changes. So to prevent the change of IP address, it should be reserved as static. So your IP address will never change and stays as static

ADVERTISEMENT

Compute Engine Instance cannot restart

Restart is necessary when you try to change the zone of your instance or change machine type of your instance or increasing disk size. Changing zone or machine type needs the instance to be stopped and started again. Increasing disk size requires a restart.

Also if there are no available resources in the zone the instance will fail to restart

So to prevent the restart problem first you need to create a backup of your instance. Backups in Compute Engine are creating an image of your instance or creating a snapshot.

So while upgrading your instance to higher or lower machine you need to create a backup and create a new instance from the backup with your machine type and finally switch the IP address to the new instance. Now you can delete the other instance.

This will prevent the restart problem and recover you from the instance restart failure.

Cannot access SSH

This happens if your disk is full or any server misconfiguration. If this happens you cannot access your instance and recover the data. But there is a way to access your instance by the Serial port console.

If you are trying to connect your instance via Serial port Console you need login using the username root and the password. So you need to set the root password when the VM is healthy. The VM’s in Compute engine doesn’t come with a root password set up by default so you’ll first need to change the password by running the following command in your SSH

sudo passwd

Save the password in a safe place. This will help you to access your instance by the Serial port console.

Website is down

Let’s assume you are running WordPress with (LEMP) Nginx, PHP, MySQL in a VM with 600MB RAM (Micro). You can encounter this problem because the MySQL server crashes and cannot restart by itself. So how to handle this kind of issue.

Here comes the Cloud SQL which is a fully managed database service which is easy to maintain, manage and administer your database on GCP

Using Cloud SQL for your database is recommended for a perfect website in Google Cloud. Learn how to setup Cloud SQL for your website.

These are some best practices to be followed when you are using Compute Engine

Tags: Cloud SecurityCompute EngineGoogle Cloud Platform
ShareTweetSendShare
Cloudbooklet

Cloudbooklet

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related Posts

Set Up Deep Learning With Nvidia, Cuda, Cudnn On Ubuntu

How to Set Up Deep Learning with Nvidia, CUDA, cuDNN on Ubuntu 22.04

7 months ago
How To Install Or Upgrade Php 8.2 On Ubuntu 22.04

How to Install or Upgrade PHP 8.2 on Ubuntu 22.04

9 months ago
How To Change Timezone On Ubuntu 22.04

How to Change Timezone on Ubuntu 22.04

1 year ago
How To Install Ansible On Ubuntu 22.04

How to Install Ansible on Ubuntu 22.04

1 year ago

Follow Us

Trending Articles

Block Youtube Ads

How to Block YouTube Ads on Android TV in 2023 (6 Easy Methods)

September 20, 2023

Create High Quality AI Cover Song with Covers AI

WhatsApp Business Gets New Features to Help your Businesses Grow

How to Create and Customize Stunning Contact Poster on iPhone

5 Free AI Soulmate Maker: Create Your Perfect Match

HeyGen AI: Free AI Video Generator to Create Amazing Videos

Popular Articles

Ai Engineer

How to Become an AI Engineer in 2023: The Complete Guide

August 25, 2023

OpenAI Introduces ChatGPT Enterprise for Businesses

10 Best Email Autoresponder Tool for Lead Generation

Google Safe Search Settings: Blurred Explicit Images in Search Results

Wondershare Virbo AI Video Creation with New Features

How to Create Your Own VPN

Subscribe Now

loader

Subscribe to our mailing list to receives daily updates!

Email Address*

Name

Cloudbooklet Logo

Welcome to our technology blog, where we explore the latest advancements in the field of artificial intelligence (AI) and how they are revolutionizing cloud computing. In this blog, we dive into the powerful capabilities of cloud platforms like Google Cloud Platform (GCP), Amazon Web Services (AWS), and Microsoft Azure, and how they are accelerating the adoption and deployment of AI solutions across various industries. Join us on this exciting journey as we explore the endless possibilities of AI and cloud computing.

  • About
  • Contact
  • Disclaimer
  • Privacy Policy

Cloudbooklet © 2023 All rights reserved.

No Result
View All Result
  • News
  • Artificial Intelligence
  • Applications
  • Linux

Cloudbooklet © 2023 All rights reserved.