Help Getting the Example to Run

Hi:

I am trying to run the examples repo from the framework website…

aws-python-simple-http-endpoint

I installed nodejs (v 6.9.2) and serverless (v 1.3.0) when I try to deploy the serverless, using

serverless deploy

I am getting the following error.

Error --------------------------------------------------

 ServerlessError: ServerlessError: User: arn:aws:iam::282688048941:user/serverless-admin
 is not authorized to perform: cloudformation:DescribeStackResources
 on resource: arn:aws:cloudformation:us-east-1:282688048941:stack/aws-python-simple-http-endpoint-dev/*

 For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.

Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues

 Please report this error. We think it might be a bug.

Your Environment Information -----------------------------
OS: darwin
Node Version: 6.9.2
Serverless Version: 1.3.0


I suspect my problem is a user who doesn’t have adequate permissions. When I try to create the user I never get the chance to pick “AdministratorAccess” as a policy choice. I have a choice of about 200 different policies and I can pick atmost 5 of them. I already have the policy (AWSLambdaFullAccess) selected. I also added the only policy with cloudformation (where the above example was failiing, AWSCloudFormationReadOnlyAccess) and it still fails with the same error.

How do I go about picking the right policy.

I am somewhat stuck so any pointer will be appreciated.

regards

Amit

Yep, definitely a user permissions issue.

When creating the user, you should select “Attach existing policies directly.” When you see a list of policies, filter them by “AWS Managed” > “Job Function” and you should see “AdministratorAccess” as an option.

Duh!!

Thank you.

Amit

1 Like