πŸš€ DevOps Certified Professional
πŸ“… Starting: 1st of Every Month 🀝 +91 8409492687 | 🀝 +1 (469) 756-6329 πŸ” Contact@DevOpsSchool.com

TERRAFORM CLOUD

DevOps

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Write a comparison between Ansible Vs Docker Vs Terraform:

ANSIBLEDOCKERTERRAFORM
Uses pythonRun on programmingConfig management tool
Ansible is an excellent useful tool for front-end developers, particularly in situations where some programming is required.Docker has multi-components.focuses on infrastructure automation, and interprets a model described in Hashicorp Configuration Language (HCL).
Ansible also easy to use and effective for configuration managementDocker is easy to understand and isolateTerraform is a service orchestration tool.
Radically simple configuration-management, application deployment, task-execution, and multi-node orchestration engine.Enterprise Container Platform for High-Velocity Innovationis an open-source infrastructure as code software tool that enables you to safely and predictably create, change, and improve infrastructure.

Write a terraform script where you create a linux ec2 instance with Security group and key defined so you should be able to use key to login to ec2 instance.

provider "aws" {

source = "terraform"{
version = "~> 2.8"
 }
}

resource provider "linux security group " allow key to login to linux ec2 instance"{

description = " allow key to login linux ec2 instance" 
}

region = "us-west-2" {
    access_key = "AKIAYIMEDZZZKEPKRNEM"
    secret_key = "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"

resource " linux_instance""first-ec2"{

ami = "ami-03d5c68bab01f3496" 
instance type = "t2.micro"
tags = {
   Name = "Akshatha Ashwathnarayan"
  }
}
}