Giter Site home page Giter Site logo

terraform's Introduction

TERRAFROM

Below is the environment setup.

Softwares Required:

  • VS Code
  • Terraform
  • AWS CLI V2

Steps:

  • Create IAM administrator user. Copy the access key and secret key. Don't push to any GitHub or internet.
  • Configure user in your laptop using
aws configure
  • Add the terraform path to system variables.

alt text

Terraform is popular IaC (Infrastructure as a Code) tool. It is best in the market now.

  • Version Control:

    Since it is code, we can maintain in Git to version control. We can completely maintain the history of infra and collaboration is easy.

  • Consistent Infra:

    Often we face the problem of different configurations in different environments like DEV, QA, PROD, etc. Using terraform we can create similar infra in multiple environments with more reliability.

  • Automated Infra CRUD:

    Using terraform we can create entire infra in minutes reducing the human errors. Updating infra using terraform is also easy. Using Terraform we can delete infra.

  • Inventory Management:

    If we create infra manually it is very tough to maintain the inventory of resources in diff region. But by seeing terraform you can easily tell the resources you are using in different regions.

  • Cost Optimisation:

    When you need infra you can create in minutes. When you don't you can delete in minutes, so you can save the cost.

  • Automatic dependency management:

    terraform can understand the dependency of resources. It can tell us the dependency clearly.

  • Modular Infra:
    Code reuse. We can develop our own modules our use open source modules to reuse the infra code. instead of spending more time to create infra from the scratch we can reuse modules.

Terraform Commands

  • First command is to initialize the terraform, at this stage terraform downloads the provider into .terraform folder.
terraform init
  • Next we need to run plan command, at this stage terraform compares the infra between declared and existing. This is only plan terraform will not create
terraform plan
  • Next we need to apply the infra, at this stage terraform create the infra with approval.
terraform apply

terraform's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.