Skip to content

Commit daa6a68

Browse files
feat(cli): support custom CDK resource migration in gen2-migration generate (#14863)
* feat: support custom resources * chore: update snapshots * chore: update finance tracker snapshot * chore: update snapshots * fix(cli-internal): custom resource codegen returns instance and uses Backend type Update the custom resource generator to: - Return the construct instance from defineXxx() wrapper functions - Use Backend type annotation instead of any for the backend parameter - Rename cdk-stack.ts to construct.ts (not resource.ts) - Use _prefixed variable name in post-generate to avoid shadowing - Fix post-generate to look in construct.ts for table name pattern - Update snapshots and tests to match * Update custom.generator.ts --------- Co-authored-by: Eli Polonsky <epolon@amazon.com>
1 parent 8c623db commit daa6a68

558 files changed

Lines changed: 68131 additions & 163 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.vscode/settings.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@
2121
},
2222
"typescript.enablePromptUseWorkspaceTsdk": true,
2323
"prettier.prettierPath": "./node_modules/prettier",
24-
"jest.jestCommandLine": "./node_modules/.bin/jest"
24+
"jest.jestCommandLine": "./node_modules/.bin/jest",
25+
"kiroAgent.configureMCP": "Disabled"
2526
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
amplify-codegen-temp/models/models
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
26+
#amplify-do-not-edit-begin
27+
amplify/\#current-cloud-backend
28+
amplify/.config/local-*
29+
amplify/logs
30+
amplify/mock-data
31+
amplify/mock-api-resources
32+
amplify/backend/amplify-meta.json
33+
amplify/backend/.temp
34+
build/
35+
dist/
36+
node_modules/
37+
aws-exports.js
38+
awsconfiguration.json
39+
amplifyconfiguration.json
40+
amplifyconfiguration.dart
41+
amplify-build-config.json
42+
amplify-gradle-config.json
43+
amplifytools.xcconfig
44+
.secret-*
45+
**.sample
46+
#amplify-do-not-edit-end
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
projects:
2+
financetracker:
3+
schemaPath: amplify/backend/api/financetracker/build/schema.graphql
4+
includes:
5+
- src/graphql/**/*.ts
6+
excludes:
7+
- ./amplify/**
8+
- src/API.ts
9+
extensions:
10+
amplify:
11+
codeGenTarget: typescript
12+
generatedFileName: src/API.ts
13+
docsFilePath: src/graphql
14+
region: us-east-1
15+
apiId: null
16+
maxDepth: 2
17+
extensions:
18+
amplify:
19+
version: 3

0 commit comments

Comments
 (0)