aws-amplify / amplify-cli

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development.
Apache License 2.0
2.81k stars 821 forks source link

Import auth Warning comes with the same background as the powershell application #9944

Open ykethan opened 2 years ago

ykethan commented 2 years ago

Before opening, please confirm:

How did you install the Amplify CLI?

npm

If applicable, what version of Node.js are you using?

No response

Amplify CLI Version

7.6.23

What operating system are you using?

windows

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

NO manual changes

Amplify Categories

auth

Amplify Commands

Not applicable

Describe the bug

amplify import auth in Powershell does not show warning as it gets hidden with the background color. image

but copy and pasting it shows the warning.

PS C:\amplify\deploymentoverride> amplify import auth
Using service: Cognito, provided by: awscloudformation
(node:1760) [DEP0128] DeprecationWarning: Invalid 'main' field in 'C:\Users\\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\cloudform\package.json' of 'packages/cloudform/index.js'. Please either fix that or report it to the module author
(Use node --trace-deprecation ... to show where the warning was created)
√ What type of auth resource do you want to import? · Cognito User Pool and Identity Pool
? Select the User Pool you want to import: ...

 There are no Identity Pools found which has the selected Cognito User Pool configured as identity provider.

testcognito (us-east-1_)

(Type in a partial name or scroll up and down to reveal more choices)

Expected behavior

image

Reproduction steps

  1. open poweshell and create app
  2. amplify init
  3. amplify import auth
  4. select "Cognito User Pool and Identity Pool"
  5. select pool that does not have identity pool.

GraphQL schema(s)

```graphql # Put schemas below this line ```

Log output

``` # Put your logs below this line ```

Additional information

No response

flozender commented 2 years ago

Hi, can I pick this up? Thanks.

flozender commented 2 years ago

image

Unfortunately, I'm unable to reproduce this issue. Was this fixed in another PR? The response is also a little different, I don't see ? Select the User Pool you want to import: ... or the other trailing text. (Tested with both PS and Windows Terminal)

redjonzaci commented 1 year ago

Any update on this issue?