Terraform assignment-1 by Bharath Srinivas
provider “aws” {region = “ap-south-1”access_key = “”secret_key = “”} provider “github” {token = “”organization = “”} variable “instance_count” {type = numberdescription = “This is for demo of number variable”default = 2 }variable “users” {type = “list”default = [“bharath”, “sharath”, “nikhil”]description = “This is for demo of list variable”} variable “amis” {type = “map”default = {“us-east-1” = “ami-““us-west-2” = “ami-“}} variable “reponame” {type = stringdescription = “This is for demo of string variable”default = “terraform”} resource “aws_iam_user” “iamuser” {name = “${var.users[0]}”}
Read more