feat(gen2-migration): amplify-migration-system executes e2e flow for amplify init, using atmosphere credentials or local profile#14432
Conversation
90354e5 to
1f9b29d
Compare
85c1a83 to
7efef77
Compare
7efef77 to
4b26f42
Compare
b93919f to
da4c3ca
Compare
|
Rename to amplify-migration-e2e-system |
|
Rename package.json task dev -> migrate |
|
Don't use require(), use import instead. clean up all mocks using jest resetAllMocks |
|
Add necessary logs from nexpect to dumpfile |
|
deleteAmplifyApp should wait until resources are deleted. poll until root stack is gone. aws sdk, import sdk cloudformation client called waitforstackstatus, deleted. |
|
default to |
|
directory manager integration test doesn't need to be named integration test. only if it does a network call. |
|
make the suffix of the deployed app names similar to the amplify-migration-apps name |
|
Remove verify-app validation. |
|
Remove validations from list-apps |
|
some apps are not neccesarily react, parameterize this. |
|
make profile argument required. |
|
for atmosphere flow, create a profile with session token, config and credentials files |
|
remove multi-app deployment functionality, make it take a single app. |
This is now configurable in |
1680e87 to
56a4e2f
Compare
Made it required. Either --profile or --atmosphere must be indicated. |
9ec3f41 to
147cb3c
Compare
c9f860d to
11b4d7f
Compare
11b4d7f to
fac5202
Compare
745deb1 to
0a07d1c
Compare
… property Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…amplify init, using atmosphere credentials or local profile (#14432) * migration configs * enhancements to existing utils * amplify-gen2-migration-e2e-system * Potential fix for code scanning alert no. 2087: Useless assignment to property Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * readme update --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Description of changes
This is a CLI. See log example at the end.
Set up configurations for each sample app and configuration loaders. Introduce classes that can execute Amplify deployments either locally or to Atmosphere.
Using Atmosphere is only supported in CI, or by developers in the team with the correct permissions. You must have a .gamma.env file with properly configured variables according to the README IN ADDITION to permissions on your AWS account.
You must specify a profile using
--profile.About 40% of this change is tests.
Description of how you validated changes
Unit tests.
Used atmosphere endpoint to run integration and e2e tests that run
amplify init. Deployed amplify apps using this CLI to my personal dev account using profiles under different names, and also the default profile on my system.Ran a local deployment using a profile with
AmplifyAdminIAM permissions. See log example at the end.Next steps
Checklist
yarn testpassesLog example
Note that I manually set my
amplifybinary, as I was using the CLI built by the monorepo during development and don't have Amplify CLI installed globally. If you do, you may just run something like:Related to #14537
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.