Skip to content

boot-aws: add --instance-type - #2726

Merged
supakeen merged 1 commit into
osbuild:mainfrom
tkoscieln:add_instance_type_option_boot_aws
Oct 1, 2026
Merged

supakeen merged 1 commit into
osbuild:mainfrom
tkoscieln:add_instance_type_option_boot_aws

Conversation

@tkoscieln

Copy link
Copy Markdown
Member

Adds optional argument for specifying instance type. Leaves default when the argument is not used.

@tkoscieln
tkoscieln force-pushed the add_instance_type_option_boot_aws branch from 9d01950 to 25968a7 Compare September 29, 2026 13:30
@tkoscieln
tkoscieln marked this pull request as ready for review September 29, 2026 13:43
@tkoscieln
tkoscieln requested a review from a team as a code owner September 29, 2026 13:43
@mmummigatti

Copy link
Copy Markdown

Hey Tom! I was also looking into making the AWS instance type configurable. I was considering removing --arch entirely since the instance type already implies the architecture. This would keep the boot-aws interface simpler and avoid having both --arch and --instance-type as potentially redundant and conflicting options.

I have a branch with this approach here: configurable-aws-instance-type

How do you like this approach instead(Work in progress)?

@tkoscieln

Copy link
Copy Markdown
Member Author

Hello Medha, I'm afraid that removing --arch entirely would not be backwards compatible and we would break something in the process of doing that. However, it's 100% true that the being able to use both options is redundant and conflicting, thanks for pointing that out. Would you consider adressing that and possibly remove safely the arch option in your separate PR as this one is blocking other work and I'd like to get it merged as soon as possible?

avitova
avitova previously approved these changes Sep 30, 2026
Comment thread cmd/boot-aws/main.go Resolved
@avitova

avitova commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Looks good to me, I can see that awscloud.go checks for the string if the instance type is valid, and errors out with ec2 doesn't support the following instance type, so I believe we do not even have to check for that.

Comment thread cmd/boot-aws/main.go Resolved
@mmummigatti

Copy link
Copy Markdown

Hello Medha, I'm afraid that removing --arch entirely would not be backwards compatible and we would break something in the process of doing that. However, it's 100% true that the being able to use both options is redundant and conflicting, thanks for pointing that out. Would you consider adressing that and possibly remove safely the arch option in your separate PR as this one is blocking other work and I'd like to get it merged as soon as possible?

Yep, that works for me! I’m happy to split it into two PRs — your PR for making the instance type configurable, and I’ll follow up with the --arch removal. 👍

@supakeen

supakeen commented Oct 1, 2026

Copy link
Copy Markdown
Member

Hello Medha, I'm afraid that removing --arch entirely would not be backwards compatible and we would break something in the process of doing that. However, it's 100% true that the being able to use both options is redundant and conflicting, thanks for pointing that out. Would you consider adressing that and possibly remove safely the arch option in your separate PR as this one is blocking other work and I'd like to get it merged as soon as possible?

Yep, that works for me! I’m happy to split it into two PRs — your PR for making the instance type configurable, and I’ll follow up with the --arch removal. 👍

boot-aws is pretty much a public facing thing nowadays; removing --arch is a breaking change and I see no reason to do so if we could instead just throw an error and conflict. Introducing a new option (like in this PR) isn't breaking, removing one is. At most we can emit a warning for a while but since this executable is really mostly used in CI setups I doubt people will see it?

@larskarlitski

Copy link
Copy Markdown
Contributor

boot-aws is pretty much a public facing thing nowadays;

Oh wow, it is? I wasn't aware of that. In this case, let's leave it in, yeah.

@supakeen

supakeen commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

boot-aws is pretty much a public facing thing nowadays;

Oh wow, it is? I wasn't aware of that. In this case, let's leave it in, yeah.

Well I had you in mind as one of its users outside of image-builder 🙂! But I know/think @thozza is also using it in his EKS stuff/CI (maybe? maybe it was another executable).

@larskarlitski

Copy link
Copy Markdown
Contributor

Well I had you in mind as one of its users outside of image-builder 🙂! But I know/think @thozza is also using it in his EKS stuff/CI (maybe? maybe it was another executable).

Haha! I certainly wouldn't want to be the one that makes you commit to boot-aws backwards compatibility. We use a image-builder from a pinned submodule for this reason.

Adds optional argument for specifying instance type. Leaves default when
the argument is not used.
@tkoscieln
tkoscieln force-pushed the add_instance_type_option_boot_aws branch from 25968a7 to 4fa2757 Compare October 1, 2026 08:20
@tkoscieln
tkoscieln requested a review from avitova October 1, 2026 12:18

@brlane-rht brlane-rht left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@supakeen
supakeen added this pull request to the merge queue Oct 1, 2026
Merged via the queue into osbuild:main with commit 47f6738 Oct 1, 2026
52 of 54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants