/Terraform-docker-demo

This is a sample terraform project to deploy MySQL docker container

Primary LanguageHCLApache License 2.0Apache-2.0

DevOps-Terraform Practice Project

This terraform files have below parts

  1. make random password
  2. get database name
  3. make one mysql Docker continers
  4. Output IP address, continers image, Id and ...

What is Terraform?

Terraform is an infrastructure as code tool which is used originally for provisioning cloud instances on various cloud providers. With Terraform and the aid of the IaC, we can provision machines and cloud instances with codes and without direct human interactions. Terraform is responsible for provisioning systems, usually Immutable ones. Terraform.io for more information.

Get started guide:

  1. Install Terraform on your system

    You can find installation guid in: https://www.terraform.io/downloads
    
  2. Clone this repo on your system

    git clone https://github.com/nimatbt/Terraform-docker-demo.git
    
  3. run this command:

 - terraform init
 - terraform plan
 - terraform apply

Terraform Practice

  • Name: Nima Tabatabaee
  • Grops: Bladrina
  • Practice Name: Ops-002-terraform-docker-demo
  • @dwsclass dws-ops-002-terraform

Copyright 2022 Nima Tabatabaee nima.tabatabaee@gmail.com