Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions server-hosting/server-hosting-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ export class ServerHostingStack extends Stack {

const server = new ec2.Instance(this, `${prefix}Server`, {
// 2 vCPU, 8 GB RAM should be enough for most factories
instanceType: new ec2.InstanceType("m5a.large"),
instanceType: new ec2.InstanceType("m6a.xlarge"),
// get exact ami from parameter exported by canonical
// https://discourse.ubuntu.com/t/finding-ubuntu-images-with-the-aws-ssm-parameter-store/15507
machineImage: ec2.MachineImage.fromSsmParameter("/aws/service/canonical/ubuntu/server/20.04/stable/current/amd64/hvm/ebs-gp2/ami-id"),
// storage for steam, satisfactory and save files
blockDevices: [
{
deviceName: "/dev/sda1",
volume: ec2.BlockDeviceVolume.ebs(15),
volume: ec2.BlockDeviceVolume.ebs(30, {volumeType: ec2.EbsDeviceVolumeType.GP3}),
}
],
// server needs a public ip to allow connections
Expand Down