# Prepare terraform installation
sudo apt-get update && sudo apt-get install -y gnupg software-properties-common
wget -O- https://apt.releases.hashicorp.com/gpg | \
gpg --dearmor | \
sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg > /dev/null
gpg --no-default-keyring \
--keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg \
--fingerprint
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] \
https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \
sudo tee /etc/apt/sources.list.d/hashicorp.list
# Download the package information from HashiCorp.
sudo apt update
# Install terrafom
sudo apt-get install terraform
And then follow instruction of this repository: https://github.com/ynwd/awesome-compute-engine-terraform
# Ensure you have the latest versions of the software.
sudo apt update
# Install Nginx
sudo apt install nginx
# Start and Enable Nginx
sudo systemctl start nginx
sudo systemctl enable nginx
# Verify the Installation
sudo systemctl status nginx
# Install Certbot and the Nginx plugin:
sudo apt install certbot python3-certbot-nginx
# Obtain and install the SSL certificate:
sudo certbot --nginx -d play.fastro.dev
# Set Up Automatic Certificate Renewal
sudo certbot renew --dry-run
# Reload Nginx:
sudo systemctl reload nginx