Skip to content

Instantly share code, notes, and snippets.

@kyanny

kyanny/example.tf

Created Jun 23, 2020
Embed
What would you like to do?
provider "aws" {
profile = "default"
region = "ap-northeast-1"
}
# 1
resource "aws_instance" "instance1" {
ami = "ami-0a1c2ec61571737db"
instance_type = "t2.micro"
vpc_security_group_ids = ["sg-0ad760c136d40cf4f"]
subnet_id = "subnet-0dc95f1172768f21a"
tags = {
Name = "Instance 1"
}
}
# 2
resource "aws_instance" "instance2" {
ami = "ami-0a1c2ec61571737db"
instance_type = "t2.micro"
vpc_security_group_ids = ["sg-0ad760c136d40cf4f"]
subnet_id = "subnet-0dc95f1172768f21a"
tags = {
Name = "Instance 2"
}
}
# 3
resource "aws_instance" "instance3" {
ami = "ami-0a1c2ec61571737db"
instance_type = "t2.micro"
vpc_security_group_ids = ["sg-0ad760c136d40cf4f"]
subnet_id = "subnet-0dc95f1172768f21a"
tags = {
Name = "Instance 3"
}
}
# 4
resource "aws_instance" "instance4" {
ami = "ami-0a1c2ec61571737db"
instance_type = "t2.micro"
vpc_security_group_ids = ["sg-0ad760c136d40cf4f"]
subnet_id = "subnet-0dc95f1172768f21a"
tags = {
Name = "Instance 4"
}
}
# 5
resource "aws_instance" "instance5" {
ami = "ami-0a1c2ec61571737db"
instance_type = "t2.micro"
vpc_security_group_ids = ["sg-0ad760c136d40cf4f"]
subnet_id = "subnet-0dc95f1172768f21a"
tags = {
Name = "Instance 5"
}
}
# 6
resource "aws_instance" "instance6" {
ami = "ami-0a1c2ec61571737db"
instance_type = "t2.micro"
vpc_security_group_ids = ["sg-0ad760c136d40cf4f"]
subnet_id = "subnet-0dc95f1172768f21a"
tags = {
Name = "Instance 6"
}
}
# 7
resource "aws_instance" "instance7" {
ami = "ami-0a1c2ec61571737db"
instance_type = "t2.micro"
vpc_security_group_ids = ["sg-0ad760c136d40cf4f"]
subnet_id = "subnet-0dc95f1172768f21a"
tags = {
Name = "Instance 7"
}
}
# 8
resource "aws_instance" "instance8" {
ami = "ami-0a1c2ec61571737db"
instance_type = "t2.micro"
vpc_security_group_ids = ["sg-0ad760c136d40cf4f"]
subnet_id = "subnet-0dc95f1172768f21a"
tags = {
Name = "Instance 8"
}
}
# 9
resource "aws_instance" "instance9" {
ami = "ami-0a1c2ec61571737db"
instance_type = "t2.micro"
vpc_security_group_ids = ["sg-0ad760c136d40cf4f"]
subnet_id = "subnet-0dc95f1172768f21a"
tags = {
Name = "Instance 9"
}
}
# 10
resource "aws_instance" "instance10" {
ami = "ami-0a1c2ec61571737db"
instance_type = "t2.micro"
vpc_security_group_ids = ["sg-0ad760c136d40cf4f"]
subnet_id = "subnet-0dc95f1172768f21a"
tags = {
Name = "Instance 10"
}
}
# 11
resource "aws_instance" "instance11" {
ami = "ami-0a1c2ec61571737db"
instance_type = "t2.micro"
vpc_security_group_ids = ["sg-0ad760c136d40cf4f"]
subnet_id = "subnet-0dc95f1172768f21a"
tags = {
Name = "Instance 11"
}
}
# 12
resource "aws_instance" "instance12" {
ami = "ami-0a1c2ec61571737db"
instance_type = "t2.micro"
vpc_security_group_ids = ["sg-0ad760c136d40cf4f"]
subnet_id = "subnet-0dc95f1172768f21a"
tags = {
Name = "Instance 12"
}
}
# 13
resource "aws_instance" "instance13" {
ami = "ami-0a1c2ec61571737db"
instance_type = "t2.micro"
vpc_security_group_ids = ["sg-0ad760c136d40cf4f"]
subnet_id = "subnet-0dc95f1172768f21a"
tags = {
Name = "Instance 13"
}
}
# 14
resource "aws_instance" "instance14" {
ami = "ami-0a1c2ec61571737db"
instance_type = "t2.micro"
vpc_security_group_ids = ["sg-0ad760c136d40cf4f"]
subnet_id = "subnet-0dc95f1172768f21a"
tags = {
Name = "Instance 14"
}
}
# 15
resource "aws_instance" "instance15" {
ami = "ami-0a1c2ec61571737db"
instance_type = "t2.micro"
vpc_security_group_ids = ["sg-0ad760c136d40cf4f"]
subnet_id = "subnet-0dc95f1172768f21a"
tags = {
Name = "Instance 15"
}
}
# 16
resource "aws_instance" "instance16" {
ami = "ami-0a1c2ec61571737db"
instance_type = "t2.micro"
vpc_security_group_ids = ["sg-0ad760c136d40cf4f"]
subnet_id = "subnet-0dc95f1172768f21a"
tags = {
Name = "Instance 16"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment