@cloudsnorkel/cdk-github-runners 0.12.3 → 0.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +184 -88
- package/API.md +84 -1
- package/assets/setup.lambda/index.html +1 -1
- package/lib/access.js +1 -1
- package/lib/image-builders/api.js +3 -3
- package/lib/image-builders/aws-image-builder/ami.js +9 -1
- package/lib/image-builders/aws-image-builder/builder.d.ts +39 -0
- package/lib/image-builders/aws-image-builder/builder.js +71 -9
- package/lib/image-builders/aws-image-builder/container.d.ts +1 -1
- package/lib/image-builders/aws-image-builder/container.js +4 -1
- package/lib/image-builders/aws-image-builder/deprecated/ami.js +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/common.js +2 -2
- package/lib/image-builders/aws-image-builder/deprecated/container.js +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/linux-components.js +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/windows-components.js +1 -1
- package/lib/image-builders/codebuild-deprecated.js +1 -1
- package/lib/image-builders/codebuild.js +2 -2
- package/lib/image-builders/components.js +12 -4
- package/lib/image-builders/static.js +1 -1
- package/lib/providers/codebuild.js +4 -4
- package/lib/providers/common.d.ts +5 -1
- package/lib/providers/common.js +9 -5
- package/lib/providers/ec2.js +2 -2
- package/lib/providers/ecs.js +6 -6
- package/lib/providers/fargate.js +6 -6
- package/lib/providers/lambda.js +4 -4
- package/lib/runner.js +1 -1
- package/lib/secrets.js +1 -1
- package/package.json +18 -18
package/API.md
CHANGED
|
@@ -5118,10 +5118,26 @@ const awsImageBuilderRunnerImageBuilderProps: AwsImageBuilderRunnerImageBuilderP
|
|
|
5118
5118
|
|
|
5119
5119
|
| **Name** | **Type** | **Description** |
|
|
5120
5120
|
| --- | --- | --- |
|
|
5121
|
+
| <code><a href="#@cloudsnorkel/cdk-github-runners.AwsImageBuilderRunnerImageBuilderProps.property.fastLaunchOptions">fastLaunchOptions</a></code> | <code><a href="#@cloudsnorkel/cdk-github-runners.FastLaunchOptions">FastLaunchOptions</a></code> | Options for fast launch. |
|
|
5121
5122
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.AwsImageBuilderRunnerImageBuilderProps.property.instanceType">instanceType</a></code> | <code>aws-cdk-lib.aws_ec2.InstanceType</code> | The instance type used to build the image. |
|
|
5122
5123
|
|
|
5123
5124
|
---
|
|
5124
5125
|
|
|
5126
|
+
##### `fastLaunchOptions`<sup>Optional</sup> <a name="fastLaunchOptions" id="@cloudsnorkel/cdk-github-runners.AwsImageBuilderRunnerImageBuilderProps.property.fastLaunchOptions"></a>
|
|
5127
|
+
|
|
5128
|
+
```typescript
|
|
5129
|
+
public readonly fastLaunchOptions: FastLaunchOptions;
|
|
5130
|
+
```
|
|
5131
|
+
|
|
5132
|
+
- *Type:* <a href="#@cloudsnorkel/cdk-github-runners.FastLaunchOptions">FastLaunchOptions</a>
|
|
5133
|
+
- *Default:* disabled
|
|
5134
|
+
|
|
5135
|
+
Options for fast launch.
|
|
5136
|
+
|
|
5137
|
+
This is only supported for Windows AMIs.
|
|
5138
|
+
|
|
5139
|
+
---
|
|
5140
|
+
|
|
5125
5141
|
##### `instanceType`<sup>Optional</sup> <a name="instanceType" id="@cloudsnorkel/cdk-github-runners.AwsImageBuilderRunnerImageBuilderProps.property.instanceType"></a>
|
|
5126
5142
|
|
|
5127
5143
|
```typescript
|
|
@@ -6674,6 +6690,73 @@ VPC to launch the runners in.
|
|
|
6674
6690
|
|
|
6675
6691
|
---
|
|
6676
6692
|
|
|
6693
|
+
### FastLaunchOptions <a name="FastLaunchOptions" id="@cloudsnorkel/cdk-github-runners.FastLaunchOptions"></a>
|
|
6694
|
+
|
|
6695
|
+
Options for fast launch.
|
|
6696
|
+
|
|
6697
|
+
#### Initializer <a name="Initializer" id="@cloudsnorkel/cdk-github-runners.FastLaunchOptions.Initializer"></a>
|
|
6698
|
+
|
|
6699
|
+
```typescript
|
|
6700
|
+
import { FastLaunchOptions } from '@cloudsnorkel/cdk-github-runners'
|
|
6701
|
+
|
|
6702
|
+
const fastLaunchOptions: FastLaunchOptions = { ... }
|
|
6703
|
+
```
|
|
6704
|
+
|
|
6705
|
+
#### Properties <a name="Properties" id="Properties"></a>
|
|
6706
|
+
|
|
6707
|
+
| **Name** | **Type** | **Description** |
|
|
6708
|
+
| --- | --- | --- |
|
|
6709
|
+
| <code><a href="#@cloudsnorkel/cdk-github-runners.FastLaunchOptions.property.enabled">enabled</a></code> | <code>boolean</code> | Enable fast launch for AMIs generated by this builder. |
|
|
6710
|
+
| <code><a href="#@cloudsnorkel/cdk-github-runners.FastLaunchOptions.property.maxParallelLaunches">maxParallelLaunches</a></code> | <code>number</code> | The maximum number of parallel instances that are launched for creating resources. |
|
|
6711
|
+
| <code><a href="#@cloudsnorkel/cdk-github-runners.FastLaunchOptions.property.targetResourceCount">targetResourceCount</a></code> | <code>number</code> | The number of pre-provisioned snapshots to keep on hand for a fast-launch enabled Windows AMI. |
|
|
6712
|
+
|
|
6713
|
+
---
|
|
6714
|
+
|
|
6715
|
+
##### `enabled`<sup>Optional</sup> <a name="enabled" id="@cloudsnorkel/cdk-github-runners.FastLaunchOptions.property.enabled"></a>
|
|
6716
|
+
|
|
6717
|
+
```typescript
|
|
6718
|
+
public readonly enabled: boolean;
|
|
6719
|
+
```
|
|
6720
|
+
|
|
6721
|
+
- *Type:* boolean
|
|
6722
|
+
- *Default:* false
|
|
6723
|
+
|
|
6724
|
+
Enable fast launch for AMIs generated by this builder.
|
|
6725
|
+
|
|
6726
|
+
It creates a snapshot of the root volume and uses it to launch new instances faster.
|
|
6727
|
+
|
|
6728
|
+
This is only supported for Windows AMIs.
|
|
6729
|
+
|
|
6730
|
+
---
|
|
6731
|
+
|
|
6732
|
+
##### `maxParallelLaunches`<sup>Optional</sup> <a name="maxParallelLaunches" id="@cloudsnorkel/cdk-github-runners.FastLaunchOptions.property.maxParallelLaunches"></a>
|
|
6733
|
+
|
|
6734
|
+
```typescript
|
|
6735
|
+
public readonly maxParallelLaunches: number;
|
|
6736
|
+
```
|
|
6737
|
+
|
|
6738
|
+
- *Type:* number
|
|
6739
|
+
- *Default:* 6
|
|
6740
|
+
|
|
6741
|
+
The maximum number of parallel instances that are launched for creating resources.
|
|
6742
|
+
|
|
6743
|
+
Must be at least 6.
|
|
6744
|
+
|
|
6745
|
+
---
|
|
6746
|
+
|
|
6747
|
+
##### `targetResourceCount`<sup>Optional</sup> <a name="targetResourceCount" id="@cloudsnorkel/cdk-github-runners.FastLaunchOptions.property.targetResourceCount"></a>
|
|
6748
|
+
|
|
6749
|
+
```typescript
|
|
6750
|
+
public readonly targetResourceCount: number;
|
|
6751
|
+
```
|
|
6752
|
+
|
|
6753
|
+
- *Type:* number
|
|
6754
|
+
- *Default:* 1
|
|
6755
|
+
|
|
6756
|
+
The number of pre-provisioned snapshots to keep on hand for a fast-launch enabled Windows AMI.
|
|
6757
|
+
|
|
6758
|
+
---
|
|
6759
|
+
|
|
6677
6760
|
### GitHubRunnersProps <a name="GitHubRunnersProps" id="@cloudsnorkel/cdk-github-runners.GitHubRunnersProps"></a>
|
|
6678
6761
|
|
|
6679
6762
|
Properties for GitHubRunners.
|
|
@@ -8741,7 +8824,7 @@ public readonly name: string;
|
|
|
8741
8824
|
|
|
8742
8825
|
##### ~~`LINUX`~~<sup>Required</sup> <a name="LINUX" id="@cloudsnorkel/cdk-github-runners.Os.property.LINUX"></a>
|
|
8743
8826
|
|
|
8744
|
-
- *Deprecated:* use {@link LINUX_UBUNTU } or {@link LINUX_AMAZON_2 }
|
|
8827
|
+
- *Deprecated:* use {@link LINUX_UBUNTU } or {@link LINUX_AMAZON_2 } or {@link LINUX_AMAZON_2023 }
|
|
8745
8828
|
|
|
8746
8829
|
```typescript
|
|
8747
8830
|
public readonly LINUX: Os;
|