@evident-ai/runner-cdk 3.5.2-dev.f258bd6 → 3.5.2-dev.f80111b
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/README.md +15 -6
- package/dist/image-version-pruner-lambda/handler.js +28250 -0
- package/dist/microvm/construct.d.ts +6 -0
- package/dist/microvm/construct.js +18 -0
- package/dist/microvm/image-version-pruner/construct.d.ts +13 -0
- package/dist/microvm/image-version-pruner/construct.js +79 -0
- package/dist/microvm/image-version-pruner/handler.d.ts +20 -0
- package/dist/microvm/image-version-pruner/handler.js +116 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -113,6 +113,7 @@ For the full end-to-end walkthrough for this construct, see
|
|
|
113
113
|
| `gitUserName` / `gitUserEmail` | `string?` | Optional git identity for agent commits. |
|
|
114
114
|
| `extraImageEnvironment` | `Record<string,string>?` | Non-secret values baked into every VM launched from the image version. |
|
|
115
115
|
| `evidentApiUrl` / `evidentRunnerId` | `string?` | Supply both to report published image versions to Evident, or omit both. |
|
|
116
|
+
| `imageVersionPruning` | `boolean?` | Opts into construct-owned pruning for this deployment's images. Uses the engine defaults; omitting it creates no pruning resources. |
|
|
116
117
|
|
|
117
118
|
The `DoorbellSecret` CloudFormation logical ID remains stable for Evident's own
|
|
118
119
|
default stack. It identifies the deployed secret resource, not the customer-facing
|
|
@@ -137,19 +138,27 @@ built from a `Dockerfile` you control. The generic runner image lives separately
|
|
|
137
138
|
|
|
138
139
|
### Prune image versions
|
|
139
140
|
|
|
140
|
-
MicroVM image versions are quota-bound.
|
|
141
|
-
|
|
141
|
+
MicroVM image versions are quota-bound. Opt into construct-owned pruning with one
|
|
142
|
+
property:
|
|
142
143
|
|
|
143
|
-
```
|
|
144
|
-
|
|
144
|
+
```ts
|
|
145
|
+
new EvidentMicrovmConstruct(this, 'Runner', {
|
|
146
|
+
// ...other required MicroVM props
|
|
147
|
+
imageVersionPruning: true,
|
|
148
|
+
});
|
|
145
149
|
```
|
|
146
150
|
|
|
147
|
-
|
|
151
|
+
This bounds the per-image version quota (`L-F8BECE9C`) for this deployment's shapes only.
|
|
152
|
+
Retention follows the engine defaults, and pruning runs before the image publish for the
|
|
153
|
+
deploy that invokes it. The custom-resource Lambda writes per-image verdicts and a summary
|
|
154
|
+
to CloudWatch Logs. Use the `prune-microvm-image-versions` CLI for deployments that do not
|
|
155
|
+
use this construct or that need non-default retention; see the
|
|
156
|
+
`@evident-ai/lambda-microvm-cdk` package README for its flags and safety semantics.
|
|
148
157
|
|
|
149
158
|
`EvidentMicrovmConstruct`'s `buildContextPath` is a **local directory** holding the
|
|
150
159
|
Dockerfile you control and everything it copies. `cdk deploy` zips and uploads that
|
|
151
160
|
directory, and the Lambda MicroVM service builds the image in *your* account. Start the
|
|
152
|
-
Dockerfile from a pinned `ghcr.io/sroze/evident-microvm-base:
|
|
161
|
+
Dockerfile from a pinned `ghcr.io/sroze/evident-microvm-base:sha-3f3949d` tag; the base image
|
|
153
162
|
contains the hook server, lifecycle hooks and common agent tooling.
|
|
154
163
|
|
|
155
164
|
`stageMicrovmBuildContext()` combines your build-context directory with a full checkout
|