Project logo

Terrraform Project, Terraform – Module

Status GitHub Pull Requests


terraform-project-template Deploying Re-usable Code

Output

image

workspace

image

keyPair

image

instances

image

image

image

image

Target group: Public

image

image

Target group: Private

image

local exic

image image

nginx

#!/bin/bash
sudo apt update -y
sudo apt install nginx -y
sudo systemctl start nginx
sudo systemctl enable nginx

sudo unlink /etc/nginx/sites-enabled/default
sudo chmod 777 /etc/nginx/sites-available

sudo echo 'server {
    listen 80;
    location / {
        proxy_pass "http://'$1':80";
    }
}' > /etc/nginx/sites-available/reverse-proxy.conf

sudo ln -s /etc/nginx/sites-available/reverse-proxy.conf /etc/nginx/sites-enabled/reverse-proxy.conf
sudo service nginx restart 

s3 and state file

image

✍️ Author