diff --git a/server-hosting/server-hosting-stack.ts b/server-hosting/server-hosting-stack.ts index d19355b..fd6f024 100644 --- a/server-hosting/server-hosting-stack.ts +++ b/server-hosting/server-hosting-stack.ts @@ -67,7 +67,7 @@ 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"), @@ -75,7 +75,7 @@ export class ServerHostingStack extends Stack { 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