Skip to content

Commit

Permalink
Increase root volume size
Browse files Browse the repository at this point in the history
  • Loading branch information
bra-fsn committed Jun 17, 2024
1 parent ebf37bc commit f65d1c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion inspector/inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import lib
import logging
import os
import pulumi_aws as aws
import repo
import sys

Expand Down Expand Up @@ -159,7 +160,9 @@ def start(ctx, exclude, start_only):
instance_opts |= dict(
user_data_base64=b64_user_data,
key_name="spare-cores",
instance_initiated_shutdown_behavior="terminate"
instance_initiated_shutdown_behavior="terminate",
# increase root volume size
root_block_device=aws.ec2.InstanceRootBlockDeviceArgs(volume_size=16),
)
# before starting, destroy everything to make sure the user-data will run (this is the first boot)
runner.destroy(vendor, {}, resource_opts | dict(instance=server))
Expand Down

0 comments on commit f65d1c0

Please sign in to comment.