'Amplify error on push after latest update to CLI

Using AWS-VAULT with 4 profiles in my ~/.aws/config file. 3 assume roles profiles and the main.

when running say, amplify push, I get an error as follows:

Failed to get profile: Cannot read property 'accessKeyId' of undefined

I've removed and re-added the credentials via aws-vault.

I've also tried removing aws-vault and running a credentials file with the profile name associated to the main profile in my /.aws folder.

When I do that, I get error:

Name: ResourceNotFoundException : Message: User pool ca-central-1_****** does not exist.

any help is appreciated



Solution 1:[1]

On Windows

I had the same error running amplify init in the part when you need to choose the user

So, I went to C:\Users\my_user.aws and I verified that my user was set, my problem was that for some reason the user exists in the config file but not in the credentials file, I just edited the file and everything worked fine.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Edgar Zamora