Skip to content

Commit

Permalink
Create ec2.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
sourabhdey21 authored Oct 8, 2023
1 parent fc6fe7a commit 935b733
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Terraform/ansible_terraform/ec2.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
resource "aws_instance" "jenkins" {
ami = "ami-0f5ee92e2d63afc18"
key_name = aws_key_pair.keypair.id
instance_type = var.instance_type
vpc_security_group_ids = [aws_security_group.allow_all.id]
subnet_id = aws_subnet.subnet1.id

}

resource "aws_instance" "netflix" {
ami = "ami-0f5ee92e2d63afc18"
key_name = aws_key_pair.keypair.id
instance_type = var.instance_type
vpc_security_group_ids = [aws_security_group.allow_all.id]
subnet_id = aws_subnet.subnet1.id

}


resource "aws_instance" "zomato" {
ami = "ami-0f5ee92e2d63afc18"
key_name = aws_key_pair.keypair.id
instance_type = var.instance_type
vpc_security_group_ids = [aws_security_group.allow_all.id]
subnet_id = aws_subnet.subnet2.id

}

0 comments on commit 935b733

Please sign in to comment.