Terraform Provisioner

Write a Terraform script which create a ubuntu ec2-instance and copy a ansible playbook, install ansible and run it. Step 1 – Create ec2-instance with key and group Step 2 – COpy playbook using file prov* Step 3 – Install Ansible using remote prov* Step 4 – RUn Ansinle playbook command using remote prv*

Read more

TERRAFORM WITH VARIABLES

Write a terraform script using AWS ec2 instance and Github and apply following kind of variables – Types of Terraform variable – Number Types of Terraform variable – String Types of Terraform variable – List Types of Terraform variable – Map Types of Terraform variable – Boolean

Read more

Selfnotes/terraform-variables

Write a terraform script using aws ec2 instance and github and apply following kind of variables – Types of Terraform variable – Number provider “aws” {region = “us-west-2”access_key = “”secret_key = “”} resource “aws_instance” “first-ec2” {ami = “ami-03d5c68bab01f3496” # us-west-2instance_type = “t2.micro” tags = {Name = “Abhishek Reddy”}} variable “numofusers” {type = numberdescription = “This is for demo of number variable”default = 3} resource “aws_iam_user” “example” {count = “${var.numofusers}”name = “Abhishek Reddy.${count.index}”} —————————————————————————————————– – Types of Terraform variable – String

Read more

Working With Terraform Variables

Write a terraform script using aws ec2 instance and github and apply following kind of variables Types of Terraform variable – Number Types of Terraform variable – String Types of Terraform variable – List Types of Terraform variable – Map Types of Terraform variable – Boolean and Decare variables in – Terraform file – Override through Command Line

Read more
1 77 78 79 80 81 185