Skip to content

Conversation

zongzhidanielhu
Copy link
Contributor

Issue number:

Description of changes:
Added feature allows configuring a specific zone in Test.toml, so that EC2 instance(s) can be launched in this specific zone. Usually, two zones must specified, but this feature allows one specific single zone for EC2 instance to launch into.

Testing done:
See testing at: bottlerocket-os/bottlerocket-test-system#984

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Before this change, there was no way to set up a specific zone for EC2 instance.
This feature allows configuring a specific zone in Test.toml for a certain variant
when launching its EC2 instance(s). Even though a minimum of two zones are needed
when creating an EKS cluster, after the cluster is created this feature can limit
one specific zone before launching the EC2 instances.
instance_type: Option<String>,

/// Specify the zone that should be used. This is only applicable for aws-* variants.
/// It can be omitted for non-aws variants and can be omitted to use default instance types.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// It can be omitted for non-aws variants and can be omitted to use default instance types.
/// It can be omitted for non-aws variants and can be omitted to use default availability zones for the vpc.

Is this what you meant?


/// Specify the zone that should be used. This is only applicable for aws-* variants.
/// It can be omitted for non-aws variants and can be omitted to use default instance types.
#[arg(long, env = "TESTSYS_ZONES")]
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the intention that we would specify this as TESTSYS_ZONES? I figured this would just be availability zones specific? Can you share how this is intended to be used as an example in the description?

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.

2 participants