You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
optionally run validation tool to compare resource configurations from live Gen 1 stack to CFN artifacts from Gen 2 synth
84
+
85
+
Now let's add an `amplify.yml` to your project. If you already have a YAML stored in the Console, go to the console and download the file and add it to the root of your project. Update the amplify.yml to look like
86
+
87
+
```diff title="amplify.yml"
88
+
version: 1
89
+
backend:
90
+
phases:
91
+
build:
92
+
commands:
93
+
- - "# Execute Amplify CLI with the helper script"
We are actively developing migration tooling to aid in transitioning your project from Gen 1 to Gen 2. Until then, we recommend you continue working with your Gen 1 Amplify project. We remain committed to supporting both Gen 1 and Gen 2 for the foreseeable future. For new projects, we recommend adopting Gen 2 to take advantage of its [enhanced capabilities](/[platform]/how-amplify-works/concepts/). Meanwhile, customers on Gen 1 will continue to receive support for high-priority bugs and essential security updates.
178
+
If anything fails in the flow above, customers can always run `git reset --hard HEAD` and they are back to Gen 2.
35
179
180
+
1. this prints a message about migrating to gen 2, including a link to migration docs
181
+
2. this moves amplify/ to .amplify/gen-1 (this shouldn't be impacted by subsequent gen2 deployments)
182
+
3. this codegen's gen2 backend resources — Auth, Data, Storage, Function resources
183
+
4. this modifies gitignore, removes Gen 1 gitignore block, adds Gen 2 gitignore (e.g. .amplify/)
184
+
1. print diff and prompt for confirmation
185
+
5. this installs gen 2 tooling with package manager of choice
186
+
1. print list of dependencies and prompt for confirmation
187
+
2. Note: Gen 1 CLI does not have this detection built in, however we can always prompt with a list of package managers
188
+
3. (see create-amplify for list of dependencies https://github.com/aws-amplify/amplify-backend/blob/main/packages/create-amplify/src/amplify_project_creator.ts#L15-L26)
189
+
6. this writes amplify.yml with the default gen 2 template
190
+
1. print diff and prompt for confirmation
191
+
2. how do we handle existing, customized yml files?
192
+
3. how do we handle complex frontend builds? should this get carried from the existing file?
193
+
7. this prepares any artifacts needed for stack refactoring
194
+
1. print a notice
195
+
2. do we need to deploy gen 2 first?
196
+
8. customer confirms changes by manually inspecting generated outputs, then commits to git
197
+
9. ...
36
198
37
-
## Gen 1 vs. Gen 2 feature matrix
199
+
## Feature matrix
38
200
39
201
The tables below present a feature matrix for Gen 1 customers who are considering Gen 2 for their apps. This will help determine the support availability for various features.
0 commit comments