Skip to content

RunnerAmi Struct ​

Description of a AMI built by RunnerImageBuilder.

Initializer ​

ts
import { RunnerAmi } from '@cloudsnorkel/cdk-github-runners'

const runnerAmi: RunnerAmi = { ... }
python
import cloudsnorkel.cdk_github_runners

cloudsnorkel.cdk_github_runners.RunnerAmi(
  architecture: Architecture,
  launch_template: ILaunchTemplate,
  os: Os,
  cache_key: str = None,
  log_group: LogGroup = None
)
java
import com.cloudsnorkel.cdk.github.runners.RunnerAmi;

RunnerAmi.builder()
    .architecture(Architecture)
    .launchTemplate(ILaunchTemplate)
    .os(Os)
//  .cacheKey(java.lang.String)
//  .logGroup(LogGroup)
    .build();
csharp
using CloudSnorkel;

new RunnerAmi {
    Architecture Architecture,
    ILaunchTemplate LaunchTemplate,
    Os Os,
    string CacheKey = null,
    LogGroup LogGroup = null
};
go
import "github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners"

&cloudsnorkelcdkgithubrunners.RunnerAmi {
	Architecture: github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners.Architecture,
	LaunchTemplate: github.com/aws/aws-cdk-go/awscdk/v2.aws_ec2.ILaunchTemplate,
	Os: github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners.Os,
	CacheKey: *string,
	LogGroup: github.com/aws/aws-cdk-go/awscdk/v2.aws_logs.LogGroup,
}

Properties ​

architecturearchitecturearchitectureArchitectureArchitecture ​

architecture: Architecture

architecture: Architecture

architecture: Architecture

Architecture: Architecture

Architecture: Architecture

Architecture of the image.

launchTemplatelaunch_templatelaunchTemplateLaunchTemplateLaunchTemplate ​

launchTemplate: ILaunchTemplate

launch_template: ILaunchTemplate

launchTemplate: ILaunchTemplate

LaunchTemplate: ILaunchTemplate

LaunchTemplate: ILaunchTemplate

Launch template pointing to the latest AMI.

osososOsOs ​

os: Os

os: Os

os: Os

Os: Os

Os: Os

OS type of the image.

cacheKeycache_keycacheKeyCacheKeyCacheKey ​

cacheKey?: string

cache_key?: str

cacheKey?: java.lang.String

CacheKey?: string

CacheKey?: *string

Set this to a value that changes whenever the AMI changes (the AMI id or any version string works).

It's used to know when the AMI's root device name needs to be looked up again. If left empty, the root device name is looked up once and reused. That's fine as long as the AMI's root device never changes.

This value may be used for other things in the future that require knowing when the AMI changed.

logGrouplog_grouplogGroupLogGroupLogGroup ​

logGroup?: LogGroup

log_group?: LogGroup

logGroup?: LogGroup

LogGroup?: LogGroup

LogGroup?: LogGroup

Log group where image builds are logged.

Released under the Apache-2.0 License.