From 72ed7db62d8430dd5a0e579d28de6b42b56bddf7 Mon Sep 17 00:00:00 2001 From: Sanne Raymaekers Date: Wed, 11 Sep 2024 11:12:58 +0200 Subject: [PATCH] tools/build-rpms: increase rpm builder instance disk size The instance created for rpm builds is running out of space on the default 10G disk, let's double it. --- tools/build-rpms.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/build-rpms.py b/tools/build-rpms.py index 925bc9d19..f1f248fb7 100755 --- a/tools/build-rpms.py +++ b/tools/build-rpms.py @@ -106,11 +106,22 @@ def create_ec2_instances(cleanup_actions, args, keypair): } ] + img = ec2.describe_images(ImageIds=[arch_info[a]["ImageId"]]) instance = ec2.create_instances( ImageId=arch_info[a]["ImageId"], MinCount=1, MaxCount=1, InstanceType=arch_info[a]["InstanceType"], + BlockDeviceMappings=[ + { + "DeviceName": img['Images'][0]['RootDeviceName'], + "Ebs": { + "VolumeSize": 20, + "DeleteOnTermination": True, + "VolumeType": "gp2", + }, + }, + ], KeyName=keypair, TagSpecifications=tags )