Terraform Assignment – 1by Johnson

DevOps

YOUR COSMETIC CARE STARTS HERE

Find the Best Cosmetic Hospitals

Trusted • Curated • Easy

Looking for the right place for a cosmetic procedure? Explore top cosmetic hospitals in one place and choose with confidence.

“Small steps lead to big changes — today is a perfect day to begin.”

Explore Cosmetic Hospitals Compare hospitals, services & options quickly.

✓ Shortlist providers • ✓ Review options • ✓ Take the next step with confidence

provider “aws” {
access_key = “************”
secret_key = “************”
region = “eu-west-3”
}

provider “github” {
token = “*************”
}

variable “instance_count” {
type = number
description = “This is for demo of number variable”
default = 3
}

variable “reponame” {
type = string
description = “This is for demo of string variable”
default = “day3-broad”
}

variable “users” {
type = “list”
default = [“demo1”, “demo2”, “demo3”]
description = “This is for demo of list variable”
}

variable “amis” {
type = “map”
default = {
“us-east-1” = “ami-b374d5a5”
“us-west-2” = “ami-4b32be2b”
}
}

resource “github_repository” “repo” {
name = var.reponame
description = “Demo repo”
visibility = “public”
}

resource “aws_instance” “web” {
ami = var.amis
instance_type = “t3.micro”
count = var.instance_count
tags = {
Name = “Demo”
}
}

resource “aws_iam_user” “iamuser” {
name = “${var.users[0]}”
}

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x