amplify-cli: amplify push fails
Describe the bug We follow the tutorial exactly and it results in an error.
To Reproduce Steps to reproduce the behavior:
npm i -g @aws-amplify/cliamplify configureamplify initamplify add authamplify push
Expected behavior Amplify will be configured without na error.
Screenshots If applicable, add screenshots to help explain your problem.
$ amplify push
| Category | Resource name | Operation | Provider plugin |
| -------- | --------------- | --------- | ----------------- |
| Auth | cognito73548268 | Create | awscloudformation |
? Are you sure you want to continue? Yes
⠴ Updating resources in the cloud. This may take a few minutes...
UPDATE_IN_PROGRESS webv3-20181213091931 AWS::CloudFormation::Stack Thu Dec 13 2018 10:07:33 GMT-0800 (PST) User Initiated
CREATE_IN_PROGRESS authcognito73548268 AWS::CloudFormation::Stack Thu Dec 13 2018 10:07:38 GMT-0800 (PST)
CREATE_FAILED authcognito73548268 AWS::CloudFormation::Stack Thu Dec 13 2018 10:07:39 GMT-0800 (PST) Template format error: Unrecognized resource types: [AWS::Cognito::UserPool, AWS::Cognito::IdentityPoolRoleAttachment, AWS::Cognito::UserPoolClient, AWS::Cognito::IdentityPool]
UPDATE_ROLLBACK_IN_PROGRESS webv3-20181213091931 AWS::CloudFormation::Stack Thu Dec 13 2018 10:07:40 GMT-0800 (PST) The following resource(s) failed to create: [authcognito73548268].
⠏ Updating resources in the cloud. This may take a few minutes...Error updating cloudformation stack
✖ An error occurred when pushing the resources to the cloud
Resource is not in the state stackUpdateComplete
UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS webv3-20181213091931 AWS::CloudFormation::Stack Thu Dec 13 2018 10:07:55 GMT-0800 (PST)
DELETE_COMPLETE authcognito73548268 AWS::CloudFormation::Stack Thu Dec 13 2018 10:07:57 GMT-0800 (PST)
UPDATE_ROLLBACK_COMPLETE webv3-20181213091931 AWS::CloudFormation::Stack Thu Dec 13 2018 10:07:57 GMT-0800 (PST)
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 6
- Comments: 29 (12 by maintainers)
Region can be the cause of the issue too. Check here for more information.
We solved our issue for this. Apparently, our account was limited because a while back one of our devs exposed one of our API keys on Github. We worked with AWS billing support to resolve the limited status on our account.
Same here 😦
Got all the latest everything as of 26/02/2019 but still getting this:
PS: this is why I use terraform or pulumi whenever I can - cloudformation is just so unstable and unreliable
@krishnaanaril @npradeeptha Thanks for the feedbacks, your problems seem to be different than what @kylepolich has reported here. Could you guys please log your own separated issues so we can better assist you to get them resolved?
@kylepolich From the stack logs, it looks like the failed operation is not add auth and push, the failure happened at
amplify init. And the reason is that the IAM user that’s used to run theamplify initdoes not have the necessary permission. You can follow these steps to get it to work:amplify configureand follow the steps to setup a new IAM user, choose the default ‘AdministratorAccess’ permission will ensure no such problem will occur again, we are working to have more granular permission settings. Save the newly created user in a named profile (such as ‘default’)amplify initand choose the newly created profile when prompted.Any update? We’d like to use Amplify but if the basic installation doesn’t work I don’t think its a mature enough tool for us. Is this in GA?