Amplify new console output created duplicates (Amplify v.10.0.0)
Before opening, please confirm:
- [X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
- [X] I have searched for duplicate or closed issues.
- [X] I have read the guide for submitting bug reports.
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.
How did you install the Amplify CLI?
npm install -g @aws-amplify/cli
If applicable, what version of Node.js are you using?
v14.19.3
Amplify CLI Version
10.0.0
What operating system are you using?
Windows 10
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
i didn't made any manual changes on cloud resources.
Amplify Categories
auth, custom, storage, function, api, hosting
Amplify Commands
publish, push
Describe the bug
Hello,
With Amplify Cli V10 there was a new Logging introduced, which should improve the logging experience on amplify push/publish.
It should look like these:

Unfortunately the new logging produces a lot of identical logs in my project. i use windows 10 and git bash.
With the new logging, there are so many logs written, that i can't scroll up to the beginning after it's finished.
It produces identical logs like these on mass.

For me this is currently a showstopper and I had to downgrade the amplify cli.
Kind Regards Stefan
Expected behavior
The Amplify cli shouldn't produced unecassary duplicate logs.
Reproduction steps
- Amplify env checkout
- Amplify push --yes
GraphQL schema(s)
No response
Project Identifier
No response
Log output
No response
Additional information
No response
Hello @StefanVolkmer-WW, thank you for reaching out. The issue appears when a terminal is utilizing a non-rewriteable buffer for output. Could you try using powershell or cmd terminal and let us know if this mitigates the issues.
Output from powershell in windows 11.

output for CMD.

Hello @ykethan , Unfortunately the same problem occurs in cmd and also in powershell. I attached here two screenshots at the end of this post.
What i recognized. If i use VSCode and select "cmd" oder "powershell" as terminal... then while the deployement the terminal kind changes from e.g. "powershell" to "node". After the deployment is finished, it switched back to "powershell".
Before i press enter:
While deployment:

After having no success in vscode (not with "CMD", not with "Powershell"), i tried to use the "CMD" and the "Powershell" Terminal as Standalone Versions.
Here i used the standalone CMD Terminal

Here i used the standalone Powershell Terminal

I'm using Windows 10. Is it possible that the deployment use this "node" terminal, and this doesn't have a rewriteable buffer? Which Node Version did you use? i use Node 14. But i can't upgrade and teest, because my project is not yet compatible with higher versions.
Hope we find a solution for this problem. Kind Regards Stefan
Hey @StefanVolkmer-WW, thank you for the information. I was using Node v16 and did try switching to Node v14 and testing this my amplify project but did not run into the duplication issue.
For quick check could you please check the powershell properties by right clicking the powershell window and you should see any output an follows in windows 10.

on the command history do you see a buffer configured? if the buffer is configured, could you try setting this to a higher value(may need to close and reopen window for changes to propagate) and test the output?
Hi @ykethan
i tried it with a higher Buffer Size. At first with 500. Then with 999 (which is the maximum i can set)
The rest of the settings is the same as on your computer.

But unfortunately still duplicate logs

I set up a new small amplify project with just two lambdas.
is this the log how it should look like?

Here i doesn't see duplicate logs, but nervertheless it's confusing me. Because the Lambda amplifylogtest6cb11af7 was changed. But the log says that a lambdafunction below amplifylogtesta3cfe9e2 was updated?! I'm confused.
Hey @StefanVolkmer-WW, Thank you for the information. In order to dive deeper into the issue, could you provide me the following information.
- The Project identifier by running
amplify diagnose --send-reportin the effected project. - Is amplify installed locally as a dependency of the affected project?
- Is there an .npmrc or similar package manager config file with any project-specific settings (i.e. script-shell)
- Is amplify being executed through an npm script (e.g. npm run deploy executes amplify push -y)
Hey @StefanVolkmer-WW, following up on this issue. Please do let us know if you require any assistance.
Hey @ykethan Extrem sorry for the late response.
- Project Identifier: 622918417465544b7ad90dcfbd943f8a
- Amplify was installed globally via: "npm install -g @aws-amplify/cli"
- No i doesn't have .npmrc or any other package manager config files in my project.
- Amplify Command is always executed directly in the power shell.
If the Project Identifier Informations are not enough helpfully, i could try to duplicate my repository... without all our business logic code... just with the IaC Stuff and provide it to you.
would be some effort, but i do my best to support your analysis.
Kind Regards Stefan
P.S. My Stack/Project is quite bigger as the common amplify projects. Is this maybe a relevant factor?

Hey @StefanVolkmer-WW , thank you for the information. On diving deeper and testing the Amplify application in various scenarios I was able to reproduce the issue. Following are the steps utilized.
Utilized powershell terminal in replicating the issue.
- amplify init
- amplify add auth enabled oauth sign in with facebook, google and apple
- amplify add api enabled auth type as user pool
- amplify add storage selected s3 storage
- amplify push
observed the following behaviour

Note: the issue appears only when i am not using the powershell window in a full screenmode and does not effect the application functionality.
Marking this as a bug for further investigation and improvements.
On further testing observed the following when using a powershell in vscode as a terminal

Steps to replicate:
- amplify init
- replaced my cli.json
{
"features": {
"graphqltransformer": {
"addmissingownerfields": true,
"improvepluralization": false,
"validatetypenamereservedwords": true,
"useexperimentalpipelinedtransformer": true,
"enableiterativegsiupdates": true,
"secondarykeyasgsi": true,
"skipoverridemutationinputtypes": true,
"transformerversion": 2,
"suppressschemamigrationprompt": true,
"showfieldauthnotification": false,
"securityEnhancementNotification": false
},
"frontend-ios": {
"enablexcodeintegration": true
},
"auth": {
"enablecaseinsensitivity": true,
"useinclusiveterminology": true,
"breakcirculardependency": true,
"forcealiasattributes": false,
"useenabledmfas": true
},
"codegen": {
"useappsyncmodelgenplugin": true,
"usedocsgeneratorplugin": true,
"usetypesgeneratorplugin": true,
"cleangeneratedmodelsdirectory": true,
"retaincasestyle": true,
"addtimestampfields": true,
"handlelistnullabilitytransparently": true,
"emitauthprovider": true,
"generateindexrules": true,
"enabledartnullsafety": true
},
"appsync": {
"generategraphqlpermissions": true
},
"latestregionsupport": {
"pinpoint": 1,
"translate": 1,
"transcribe": 1,
"rekognition": 1,
"textract": 1,
"comprehend": 1
},
"project": {
"overrides": true
}
},
"debug": {
"shareProjectConfig": true
}
}
- amplify add api
- amplify add function select Lambda trigger
- amplify push