angularamazon-web-servicesaws-amplifyaws-amplify-cli

not authorized to perform: amplify:CreateApp on resource... - Amplify Init + Angular


According to the guide I was reading, I'm supposed to run in the cmd amplify configure and then authenticate into aws console and complete the user creation. It takes me to the IAM page so I click Users > Add User

and create the user. It also says it's successfully set up user as you can see in image,

enter image description here

but when I run amplify init,I get the error not authorized to perform: amplify:CreateApp on resource: arn:aws:amplify:us-east... . I looked in permissions, but didn't see an option for amplify so I'm not really sure how to get past this error. What am I missing? I appreciate any help!

enter image description here


Solution

  • Please go to your IAM in aws.

    CREATE POLICY

    you need to have this

    policy aws

    you need to have:

    For now, allow all the actions and all the resources... but for security you need to spicify what actions and resources.

    CREATE GROUP

    Create group and add the new policy you are created.

    CREATE USER

    Create user and and the new group.

    And that's all.