@dotcom-tool-kit/containerised-app 0.1.3 → 0.1.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.
Files changed (2) hide show
  1. package/package.json +7 -7
  2. package/schema.js +17 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotcom-tool-kit/containerised-app",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "scripts": {
5
5
  "test": "echo \"Error: no test specified\" && exit 1"
6
6
  },
@@ -17,7 +17,7 @@
17
17
  "homepage": "https://github.com/financial-times/dotcom-tool-kit/tree/main/plugins/containerised-app",
18
18
  "files": [
19
19
  ".toolkitrc.yml",
20
- "index.js"
20
+ "schema.js"
21
21
  ],
22
22
  "engines": {
23
23
  "node": "18.x || 20.x || 22.x"
@@ -26,13 +26,13 @@
26
26
  "dotcom-tool-kit": "4.x"
27
27
  },
28
28
  "dependencies": {
29
- "@dotcom-tool-kit/aws": "^0.1.2",
30
- "@dotcom-tool-kit/circleci-deploy": "^4.1.11",
29
+ "@dotcom-tool-kit/aws": "^0.1.4",
30
+ "@dotcom-tool-kit/circleci-deploy": "^4.1.12",
31
31
  "@dotcom-tool-kit/cloudsmith": "^1.0.1",
32
- "@dotcom-tool-kit/docker": "^0.3.2",
32
+ "@dotcom-tool-kit/docker": "^0.4.0",
33
33
  "@dotcom-tool-kit/doppler": "^2.1.7",
34
- "@dotcom-tool-kit/hako": "^0.1.4",
35
- "@dotcom-tool-kit/node": "^4.2.9",
34
+ "@dotcom-tool-kit/hako": "^0.1.5",
35
+ "@dotcom-tool-kit/node": "^4.3.1",
36
36
  "zod": "^3.24.1"
37
37
  }
38
38
  }
package/schema.js ADDED
@@ -0,0 +1,17 @@
1
+ const z = require('zod')
2
+
3
+ module.exports = z.object({
4
+ awsRoleArnStaging: z
5
+ .string()
6
+ .regex(/^arn:aws:iam::\d+:role\//, 'Role ARN must be a full IAM role ARN including account number')
7
+ .describe('the ARN of an IAM role to assume when deploying to staging'),
8
+ awsRoleArnProduction: z
9
+ .string()
10
+ .regex(/^arn:aws:iam::\d+:role\//, 'Role ARN must be a full IAM role ARN including account number')
11
+ .describe('the ARN of an IAM role to assume when deploying to production'),
12
+ // HACK: must be either `true` or `undefined` because of the way !toolkit/if-defined works
13
+ multiregion: z
14
+ .literal(true)
15
+ .optional()
16
+ .describe('Whether the app is deployed across both EU and US regions')
17
+ })