Skip to content

Latest commit

 

History

History
87 lines (39 loc) · 2.83 KB

README.md

File metadata and controls

87 lines (39 loc) · 2.83 KB

Terraform AWS Ubuntu EC2 Instance

Deploy an AWS EC2 Instance running Ubuntu by using Terraform

Terraform init:

terraform init

Terraform plan:

terraform plan

Terraform apply:

terraform apply

Terraform outputs:

outputs

For CI/CD pipeline part by using GitLab:

All my stages has been completed successfully.

Gitlab Link below 👇

https://gitlab.com/mesutguzel/terraform-aws-devops-challenge

main

Validate:

validate

Build:

build

Apply:

apply

Destroy:

destroy

Writing Dockerfile to deploy a Python Web App

Docker image build:

image-build

Docker container run:

docker run

Web Application on port 5000:

web-application

Backup Script

Running mybackup.sh for the first time without having backup directory

running without backup dir

Backup directory created

backup dir created

Running mybackup.sh again

run bash again

File named "www-backup-05-04-22.tar.gz" has been created

full