create-ampless 0.2.0-alpha.10 → 0.2.0-alpha.11

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.
@@ -3,4 +3,10 @@ import { defineFunction } from '@aws-amplify/backend'
3
3
  export const postConfirmation = defineFunction({
4
4
  name: 'post-confirmation',
5
5
  entry: './handler.ts',
6
+ // Auth trigger — assign to the auth nested stack so CFN doesn't
7
+ // place it in a separate `function` stack that ends up in a
8
+ // circular dependency loop with auth (which references this
9
+ // function) and storage/data (which auth happens to reach via
10
+ // cross-stack refs the function adds).
11
+ resourceGroupName: 'auth',
6
12
  })
@@ -6,4 +6,8 @@ export const processorUntrusted = defineFunction({
6
6
  // Untrusted plugins do pure JS work; modest memory.
7
7
  memoryMB: 256,
8
8
  timeoutSeconds: 30,
9
+ // Pin to the data stack so all event-system Lambdas live together
10
+ // (dispatcher / processor-trusted are also `data`) and the function
11
+ // stack doesn't bridge data ↔ storage ↔ auth in a CFN cycle.
12
+ resourceGroupName: 'data',
9
13
  })
@@ -1,6 +1,12 @@
1
1
  import { defineFunction } from '@aws-amplify/backend'
2
2
 
3
+ // `resourceGroupName: 'data'` co-locates this Lambda with the AppSync
4
+ // stack. Required because ampless wires userAdmin as a custom GraphQL
5
+ // resolver (data → function) while api-key-renewer reads graphqlApi
6
+ // (function → data); leaving userAdmin in the default `function` stack
7
+ // turns those two arrows into a CloudFormation circular dependency.
3
8
  export const userAdmin = defineFunction({
4
9
  name: 'user-admin',
5
10
  entry: './handler.ts',
11
+ resourceGroupName: 'data',
6
12
  })
@@ -27,7 +27,7 @@
27
27
  "@ampless/plugin-rss": "^0.2.0-alpha.3",
28
28
  "@ampless/plugin-seo": "^0.2.0-alpha.3",
29
29
  "@ampless/plugin-webhook": "^0.2.0-alpha.3",
30
- "@ampless/admin": "^0.2.0-alpha.10",
30
+ "@ampless/admin": "^0.2.0-alpha.11",
31
31
  "@ampless/backend": "^0.2.0-alpha.4",
32
32
  "@ampless/runtime": "^0.2.0-alpha.5",
33
33
  "@digital-go-jp/tailwind-theme-plugin": "^0.3.4",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-ampless",
3
- "version": "0.2.0-alpha.10",
3
+ "version": "0.2.0-alpha.11",
4
4
  "description": "Create a new ampless project",
5
5
  "license": "MIT",
6
6
  "type": "module",