better aws builder config organization

This commit is contained in:
mbecker20
2025-11-07 10:04:45 -08:00
parent ea5e684915
commit c6df866755
2 changed files with 23 additions and 23 deletions

View File

@@ -423,18 +423,6 @@ pub struct AwsBuilderConfig {
#[partial_default(aws_default_volume_gb())]
pub volume_gb: i32,
/// The port periphery will be running on.
/// Default: `8120`
#[serde(default = "default_port")]
#[builder(default = "default_port()")]
#[partial_default(default_port())]
pub port: i32,
#[serde(default = "default_use_https")]
#[builder(default = "default_use_https()")]
#[partial_default(default_use_https())]
pub use_https: bool,
/// The EC2 ami id to create.
/// The ami should have the periphery client configured to start on startup,
/// and should have the necessary github / dockerhub accounts configured.
@@ -473,6 +461,18 @@ pub struct AwsBuilderConfig {
#[builder(default)]
pub user_data: String,
/// The port periphery will be running on.
/// Default: `8120`
#[serde(default = "default_port")]
#[builder(default = "default_port()")]
#[partial_default(default_port())]
pub port: i32,
#[serde(default = "default_use_https")]
#[builder(default = "default_use_https()")]
#[partial_default(default_use_https())]
pub use_https: bool,
/// An expected public key associated with Periphery private key.
/// If empty, doesn't validate Periphery public key.
#[serde(default)]