Skip to content

Commit ec4eb97

Browse files
kevinemooreKevin Moore
andauthored
Update app manifest and readme (#89)
Update app manifst to handle Benchling changing v2-beta.canvas.created to v2.canvas.created. Update README to capture all needed environment variables. Co-authored-by: Kevin Moore <[email protected]>
1 parent df22fad commit ec4eb97

File tree

5 files changed

+19
-11
lines changed

5 files changed

+19
-11
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,18 @@ Create a `.env` file with the following content:
3030
export CDK_DEFAULT_ACCOUNT=XXXXXXXXXXXX
3131
export CDK_DEFAULT_REGION=us-west-2
3232
export BUCKET_NAME=bucket-in-that-region
33-
export PREFIX=test/benchling-webhook
34-
export QUEUE_NAME=STACK_NAME-PackagerQueue-XXXXXXX
33+
export PREFIX=benchling
34+
export QUILT_CATALOG=stable.quilttest.com
35+
export QUEUE_NAME=tf-stable-PackagerQueue-4g1PXC9992vI
3536
export QUEUE_URL=https://sqs.$CDK_DEFAULT_REGION.amazonaws.com/$CDK_DEFAULT_ACCOUNT/$QUEUE_NAME
37+
export BENCHLING_TENANT=<YOUR_BENCHLING_TENANT>
38+
export BENCHLING_CLIENT_ID=<YOUR_BENCHLING_APP_CLIENT_ID>
39+
export BENCHLING_CLIENT_SECRET=<YOUR_BENCHLING_CLIENT_SECRET>
3640
```
41+
Notes:
42+
* Choose an S3 bucket that is already connected to your Quilt stack and in the same region as the Quilt CloudFormation stack and this CloudFormation stack.
43+
* QUEUE_NAME: Choose the name of the "PackagerQueue" in your Quilt stack. This will allow the BenchlingWebhookStack to send messages to the Quilt Packaging Engine
44+
* BENCHLING_TENANT: Use XXX if you login to benchling at XXX.benchling.com
3745

3846
## Deployment
3947

app-manifest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ manifestVersion: 1
22
info:
33
name: package-with-quilt
44
description: Uses Quilt Package Engine
5-
version: 0.2.1
5+
version: 0.2.2
66
features:
77
- name: Quilt Integration
88
id: quilt_integration
@@ -19,7 +19,7 @@ subscriptions:
1919
- type: v2-beta.app.configuration.updated
2020
- type: v2.canvas.initialized
2121
- type: v2.canvas.userInteracted
22-
- type: v2-beta.canvas.created
22+
- type: v2.canvas.created
2323
- type: v2.entity.registered
2424
- type: v2.entry.created
2525
- type: v2.entry.updated.fields

lib/webhook-state-machine.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export class WebhookStateMachine extends Construct {
191191
),
192192
stepfunctions.Condition.stringEquals(
193193
"$.message.type",
194-
"v2-beta.canvas.created",
194+
"v2.canvas.created",
195195
),
196196
stepfunctions.Condition.stringEquals(
197197
"$.message.type",
@@ -288,7 +288,7 @@ export class WebhookStateMachine extends Construct {
288288
"---\n" +
289289
"- [Quilt Catalog]({})\n" +
290290
"- [Drop Zone]({})\n" +
291-
"- Quilt+ URI: {}\n" +
291+
"- [QuiltSync]({})\n" +
292292
"---\n" +
293293
"> NOTE: It may take a minute for the package to be created asynchronously.\n"+
294294
"', " +

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@eslint/js": "^9.22.0",
1515
"@types/adm-zip": "^0.5.7",
1616
"@types/jest": "^29.5.14",
17-
"@types/node": "22.15.18",
17+
"@types/node": "^22.15.33",
1818
"@typescript-eslint/eslint-plugin": "^8.26.1",
1919
"@typescript-eslint/parser": "^8.26.1",
2020
"aws-cdk": "2.1016.0",

0 commit comments

Comments
 (0)