@cloudsnorkel/cdk-github-runners 0.14.11 → 0.14.12

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 CHANGED
@@ -3834,7 +3834,7 @@
3834
3834
  "stability": "experimental"
3835
3835
  },
3836
3836
  "homepage": "https://github.com/CloudSnorkel/cdk-github-runners.git",
3837
- "jsiiVersion": "5.8.15 (build af1b019)",
3837
+ "jsiiVersion": "5.8.18 (build f5c30fc)",
3838
3838
  "keywords": [
3839
3839
  "aws",
3840
3840
  "aws-cdk",
@@ -13006,7 +13006,7 @@
13006
13006
  },
13007
13007
  "locationInModule": {
13008
13008
  "filename": "src/image-builders/components.ts",
13009
- "line": 549
13009
+ "line": 550
13010
13010
  },
13011
13011
  "name": "environmentVariables",
13012
13012
  "parameters": [
@@ -13190,7 +13190,7 @@
13190
13190
  },
13191
13191
  "locationInModule": {
13192
13192
  "filename": "src/image-builders/components.ts",
13193
- "line": 586
13193
+ "line": 587
13194
13194
  },
13195
13195
  "name": "getAssets",
13196
13196
  "parameters": [
@@ -13227,7 +13227,7 @@
13227
13227
  },
13228
13228
  "locationInModule": {
13229
13229
  "filename": "src/image-builders/components.ts",
13230
- "line": 581
13230
+ "line": 582
13231
13231
  },
13232
13232
  "name": "getCommands",
13233
13233
  "parameters": [
@@ -13263,7 +13263,7 @@
13263
13263
  },
13264
13264
  "locationInModule": {
13265
13265
  "filename": "src/image-builders/components.ts",
13266
- "line": 595
13266
+ "line": 596
13267
13267
  },
13268
13268
  "name": "getDockerCommands",
13269
13269
  "parameters": [
@@ -13298,7 +13298,7 @@
13298
13298
  },
13299
13299
  "locationInModule": {
13300
13300
  "filename": "src/image-builders/components.ts",
13301
- "line": 602
13301
+ "line": 603
13302
13302
  },
13303
13303
  "name": "shouldReboot",
13304
13304
  "parameters": [
@@ -13334,7 +13334,7 @@
13334
13334
  "immutable": true,
13335
13335
  "locationInModule": {
13336
13336
  "filename": "src/image-builders/components.ts",
13337
- "line": 576
13337
+ "line": 577
13338
13338
  },
13339
13339
  "name": "name",
13340
13340
  "type": {
@@ -14310,6 +14310,6 @@
14310
14310
  "symbolId": "src/image-builders/aws-image-builder/deprecated/windows-components:WindowsComponents"
14311
14311
  }
14312
14312
  },
14313
- "version": "0.14.11",
14314
- "fingerprint": "pPb2DkhlcCfnSgM5rfNKmErW9ttbyZayQH4/SKTZizI="
14313
+ "version": "0.14.12",
14314
+ "fingerprint": "4Q26K9vmMv/z4Lxfc29HurJ3dtYOJqc2t2uq4/lMoKg="
14315
14315
  }
@@ -114,20 +114,9 @@ async function deleteResources(props) {
114
114
  continue;
115
115
  }
116
116
  await ec2.send(new import_client_ec2.DeregisterImageCommand({
117
- ImageId: imageId
117
+ ImageId: imageId,
118
+ DeleteAssociatedSnapshots: true
118
119
  }));
119
- for (const blockMapping of imageDesc.Images[0].BlockDeviceMappings ?? []) {
120
- if (blockMapping.Ebs?.SnapshotId) {
121
- console.log({
122
- notice: "Deleting EBS snapshot",
123
- image: imageId,
124
- snapshot: blockMapping.Ebs.SnapshotId
125
- });
126
- await ec2.send(new import_client_ec2.DeleteSnapshotCommand({
127
- SnapshotId: blockMapping.Ebs.SnapshotId
128
- }));
129
- }
130
- }
131
120
  } catch (e) {
132
121
  console.warn({
133
122
  notice: "Failed to delete AMI",