Skip to content

Commit

Permalink
TestInstances_310823
Browse files Browse the repository at this point in the history
  • Loading branch information
Buckingham authored and Buckingham committed Aug 31, 2023
1 parent 42394da commit c65102f
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions terraform/environments/ppud/instances.tf
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,83 @@ resource "aws_instance" "s609693lo6vw108" {
}
}

#################################
# Windows DEV Test Instances #
#################################

# Test SQL Server

resource "aws_instance" "TestSQLServer1" {
count = local.is-development == true ? 1 : 0
ami = "ami-0dee621967810b9e8"
instance_type = "m5.large"
source_dest_check = false
iam_instance_profile = aws_iam_instance_profile.ec2_profile.id
vpc_security_group_ids = [aws_security_group.PPUD-Database-Server[0].id]
subnet_id = data.aws_subnet.private_subnets_a.id

root_block_device {
volume_size = 100
volume_type = "gp3"
}

ebs_block_device {
device_name = "/dev/sdb"
volume_type = "gp3"
volume_size = 100
}

metadata_options {
http_tokens = "required"
http_endpoint = "enabled"
}

tags = {
Name = "TestSQLServer1"
patch_group = "dev_win_patch"
backup = false
}
}

# Test Web Server

resource "aws_instance" "TestWebServer1" {
count = local.is-development == true ? 1 : 0
ami = "ami-070c9a4ee0e5d83d5"
instance_type = "m5.large"
source_dest_check = false
iam_instance_profile = aws_iam_instance_profile.ec2_profile.id
vpc_security_group_ids = [aws_security_group.PPUD-WEB-Portal.id]
subnet_id = data.aws_subnet.private_subnets_c.id

root_block_device {
volume_size = 100
volume_type = "gp3"
}

ebs_block_device {
device_name = "/dev/sdb"
volume_type = "gp3"
volume_size = 50
}

ebs_block_device {
device_name = "/dev/sdb"
volume_type = "gp3"
volume_size = 50
}

metadata_options {
http_tokens = "required"
http_endpoint = "enabled"
}

tags = {
Name = "TestWebServer1"
patch_group = "dev_win_patch"
backup = false
}


#################################
# Pre-Production (UAT Instances) #
Expand Down

0 comments on commit c65102f

Please sign in to comment.