aws-amplify / aws-amplify/amplify-cli

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

Open
#9,944 3 comments 3 reactions 0 assignees View on GitHub
bug good first issue import p3
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

### 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](https://github.com/aws-amplify/amplify-cli/issues?q=is%3Aissue+).
- [X] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-cli/blob/master/CONTRIBUTING.md#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

### 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](https://user-images.githubusercontent.com/87995712/157502267-ba768801-a476-4480-a2c0-ea9a75c94a2b.png)

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](https://user-images.githubusercontent.com/87995712/157503359-87ba2acc-87ce-48ca-92a6-9a7037c4adc2.png)

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.