Code Monkey home page Code Monkey logo

create-and-manage-cloud-infrastructure-using-terraform's Introduction

create-and-manage-cloud-infrastructure-using-terraform

Create, deploy and manage cloud infrastructure using terraform.

main.tf

This main.tf file is used to define all the resources you wish to launch or manage with terraform. Below are some high level walkthroughs of the code:

count = 4

It signifies number of resources to create. count = 4 will create Four resources of the same kind will be provisioned.

Amazon machine image (ami) - 

Allows you to launch instances containing all the required softwares and operating system.

tags - 

Tags allow you to define the specific resource with a label, which is further beneficial for cost calculations.

aws_instance - 

Creates the EC2 instances in AWS console.

count.index - 

Allows you to define the name according to index. For example if the value of count is 4 then index starts with ( 0 to 3 )

Lookup 

Retrieves the value of a single element from a map, given its key. If you don't declare any key then the default value is considered.

Create File terraform.tfvars and Add instance_type

Define and choose your instance_type according to your needs.

instance_type = "t2.micro" 

create-and-manage-cloud-infrastructure-using-terraform's People

Contributors

mzaf avatar

Watchers

 avatar

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.