Skip to content

Commit

Permalink
add winbuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
partouf committed Jan 11, 2025
1 parent d7719cf commit ce0c43c
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions terraform/ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ locals {
runner_image_id = "ami-0a1472d1b7c289619"
conan_image_id = "ami-0b41dc7a318b530bd"
builder_image_id = "ami-0ef4921e9d82c03fb"
win_builder_image_id = "ami-0dd4c3af0893aeae9"
smbserver_image_id = "ami-01e7c7963a9c4755d"
smbtestserver_image_id = "ami-0284c821376912369"
admin_subnet = module.ce_network.subnet["1a"].id
Expand Down Expand Up @@ -101,6 +102,36 @@ resource "aws_instance" "BuilderNode" {
}
}

resource "aws_instance" "WinBuilderNode" {
ami = local.win_builder_image_id
iam_instance_profile = aws_iam_instance_profile.Builder.name
ebs_optimized = true
instance_type = "c5d.2xlarge"
monitoring = false
key_name = "mattgodbolt"
subnet_id = local.admin_subnet
vpc_security_group_ids = [aws_security_group.Builder.id]
associate_public_ip_address = true
source_dest_check = false
user_data = "win-builder"

root_block_device {
volume_type = "gp2"
volume_size = 100
delete_on_termination = true
}

lifecycle {
ignore_changes = [
associate_public_ip_address
]
}

tags = {
Name = "WinBuilder"
}
}

resource "aws_instance" "CERunner" {
ami = local.runner_image_id
iam_instance_profile = aws_iam_instance_profile.CompilerExplorerRole.name
Expand Down

0 comments on commit ce0c43c

Please sign in to comment.