-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to register scalable target #25
Comments
Hi,
could you provide little more information as below:
Region:
Account Id:
Time stamp of request:
Did you control access to your APIGateway rest API via resource policy or
some additional means?:
Thanks
On Mon, Feb 3, 2020 at 4:31 PM rddefauw ***@***.***> wrote:
I've followed the instructions and created the CFN stack. I tested my API
manually. I'm now trying to register the scalable target on the CLI:
aws application-autoscaling register-scalable-target \
--service-namespace custom-resource \
--scalable-dimension custom-resource:ResourceType:Property \
--resource-id file://~/tmp/custom-resource-id.txt \
--min-capacity 1 --max-capacity 15 \
--region us-east-1
However, I get this error:
An error occurred (ValidationException) when calling the RegisterScalableTarget operation: User is missing the following permissions: execute-api:Invoke:PATCH, execute-api:Invoke:GET
My IAM user has full admin access in the account, and just to be sure, I
added an online policy to my user that grants the specific permissions on
the API.
I am not sure how to get past this permission problem.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#25?email_source=notifications&email_token=AACRJMPI3L2CTBZXHJ5MQBLRBCZPZA5CNFSM4KPOOPO2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IKYAT5Q>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACRJMO6ZNOAXAJHJN65SCTRBCZPZANCNFSM4KPOOPOQ>
.
--
Nayanish
Software Development Engineer
Amazon
Seattle
|
I've made some progress in debugging this. I switched to using boto3 and started getting a different error:
Checking the API Gateway logs, I saw this:
And I solved that by deleting and recreating my CloudFormation stack; I think that the API was caching an old version of the Lambda function ID. In summary, things are working with boto3, but still not with the CLI. My API uses Lambda functions in proxy mode with IAM authentication. |
We might need to get some more information from you to troubleshoot further. Are you able to post this to the AWS discussion forum at https://forums.aws.amazon.com/forum.jspa?forumID=291? |
Looks like user error: I had a newline marker at the end of the custom resource txt file. Generally the error messages for custom resources are not as helpful as they could be. For example:
|
I hit error below
I created my own apidateway on api gateway console, I can get response 200, but this url cannot be used to register the ScalableTarget. |
Hi, Can you check whether you have a service-linked role for Application Auto Scaling in your account? I noticed that the example Kinesis template you shared deploys an alternative IAM role configuration. If this is the issue, then you can fix it by adding the service-linked role for custom resources to your account. |
Anyone hit this error:
|
Were you able to resolve it? I am also facing the same issue. Could you please let me know if you had any success. |
I'm facing the similar error as well, however it's |
I've followed the instructions and created the CFN stack. I tested my API manually. I'm now trying to register the scalable target on the CLI:
However, I get this error:
My IAM user has full admin access in the account, and just to be sure, I added an online policy to my user that grants the specific permissions on the API.
I am not sure how to get past this permission problem.
The text was updated successfully, but these errors were encountered: