@cloudsnorkel/cdk-github-runners
Version:
CDK construct to create GitHub Actions self-hosted runners. Creates ephemeral runners on demand. Easy to deploy and highly customizable.
57 lines (56 loc) • 1.47 kB
TypeScript
import * as cdk from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { ImageBuilderComponent } from './builder';
import { ImageBuilderObjectBase } from './common';
import { Architecture, Os } from '../../providers';
/**
* Properties for AmiRecipe construct.
*
* @internal
*/
interface AmiRecipeProperties {
/**
* Target platform. Must match builder platform.
*/
readonly platform: 'Linux' | 'Windows';
/**
* Target architecture. Must match builder platform.
*/
readonly architecture: Architecture;
/**
* Base AMI to use for the new runner AMI.
*/
readonly baseAmi: string;
/**
* Storage size for the builder.
*/
readonly storageSize?: cdk.Size;
/**
* Components to add to target container image.
*/
readonly components: ImageBuilderComponent[];
/**
* Tags to apply to the recipe and image.
*/
readonly tags: {
[key: string]: string;
};
}
/**
* Image builder recipe for Amazon Machine Image (AMI).
*
* @internal
*/
export declare class AmiRecipe extends ImageBuilderObjectBase {
readonly arn: string;
readonly name: string;
readonly version: string;
constructor(scope: Construct, id: string, props: AmiRecipeProperties);
}
/**
* Default base AMI for given OS and architecture.
*
* @internal
*/
export declare function defaultBaseAmi(scope: Construct, os: Os, architecture: Architecture): string;
export {};