fix: update amplify.yml file with the gen2 command#14136
Merged
abhi7cr merged 4 commits intoaws-amplify:migrationsfrom Mar 19, 2025
Merged
fix: update amplify.yml file with the gen2 command#14136abhi7cr merged 4 commits intoaws-amplify:migrationsfrom
abhi7cr merged 4 commits intoaws-amplify:migrationsfrom
Conversation
abhi7cr
reviewed
Mar 13, 2025
abhi7cr
reviewed
Mar 13, 2025
abhi7cr
reviewed
Mar 13, 2025
abhi7cr
approved these changes
Mar 17, 2025
…eck from amplify-meta.json file
abhi7cr
reviewed
Mar 18, 2025
|
|
||
| const amplifyMeta = (await this.readJsonFile(amplifyMetaPath)) ?? {}; | ||
|
|
||
| if ('api' in amplifyMeta && Object.keys(amplifyMeta.api).length) { |
abhi7cr
approved these changes
Mar 19, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes
If amplify.yml does not exist at the root of their project, get the buildSpec by making the getApp call, update the Gen1 command and create amplify.yml file with the updated buildspec
if amplify.yml exists at the root, update the buildspec by replacing Gen1 command to Gen2 command
Gen1 command: amplifyPush --simple
Gen2 command: npx ampx pipeline-deploy
Issue #, if available
https://app.asana.com/0/1209548398662247/1209172037882456
Description of how you validated changes
Checklist
yarn testpassesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.