Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IT-3831] Add volume parameter for image builder #420

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
10 changes: 10 additions & 0 deletions templates/ImageBuilder/amazon-linux-2023-agora-bastian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ Parameters:
Description: The generated image version.
Type: String
Default: "0.0.0"
VolumeSize:
Description: The EBS volume size (in GB)
Type: Number
Default: 32
MinValue: 8
MaxValue: 500
Resources:
# By default, AWS Services do not have permission to perform actions on your instances. This grants
# AWS Systems Manager (SSM) and EC2 Image Builder the necessary permissions to build an image.
Expand Down Expand Up @@ -67,6 +73,10 @@ Resources:
Components:
- ComponentArn:
Fn::Sub: arn:${AWS::Partition}:imagebuilder:${AWS::Region}:aws:component/update-linux/x.x.x
BlockDeviceMappings:
- DeviceName: /dev/xvda
Ebs:
VolumeSize: !Ref VolumeSize
# Make sure the latest version of the Amazon SSM Agent is installed on the image.
AdditionalInstanceConfiguration:
UserDataOverride:
Expand Down
Loading