-
Notifications
You must be signed in to change notification settings - Fork 68
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
Invalid method setting path #80
Comments
@ozbillwang Thanks for the report. This might be an issue with the Maybe AWS expects that the plugin translates ANY to the complete set of allowed methods that are covered by ANY. Can you do a double check and specify the setting on function level, for just a function that does not have ANY endpoints and see if it then works? If yes, the ANY support has to be fixed in the plugin. |
yes, the problem is gone, after rename Then I got this error:
I added a role with this permission:
and
I still got same error. So what role should I create, and can you show some codes for me? |
@ozbillwang You have to create a role as mentioned here: https://aws.amazon.com/premiumsupport/knowledge-center/api-gateway-cloudwatch-logs/ And then in the API Gateway console at the bottom there is "Settings". Enter the role you created and it should work. The role configuration in API Gateway is an account setting and applies to all APIs. If there is already a role assigned to API Gateway, you should look that up in IAM and just add the missing policy. |
... and thank you for the test. Then this bug has to be fixed to allow and support the any special method. |
After added the role manually from API Gateway console -> setting, it works now. Thanks a lot So my code to add role directly in
|
I think you do not need the role in your |
Sure. I just realised the role In my first thinking, I'd like to manage this role in |
@ozbillwang Can you check with the attached PR, if ANY is supported correctly now? |
Thanks @HyperBrain How to install this un-released version? |
Just use |
Hmmm... this sounds a bit unrelated as I only changed the method name in the method settings. |
I tested several times, then build a new serverless docker image ( But still get this error.
The steps are:
Updates:Wait, in fact, I get the same error for your current latest release v1.5.0 as well. So that's not your PR issue. Did you test with latest serverless version? update #2I test in 1.23.0 container ( But why there is no deploy issue, if I clean all alias setting? |
It works with another serverless stack with So my understanding is, the problem for |
@ozbillwang I have the same problem with my project and got the same error message "The CloudFormation template is invalid: Template format error: Unresolved resource dependencies [ApiGatewayDeployment1511324460661] in the Resources block of the template" I managed to fix that by removing another plugin "serverless-domain-manager" from my serverless.yml file. Do you use that plugin too? At this stage, I am not sure if the problem is with "serverless-domain-manager" or "serverless-aws-alias". |
Thanks @demsey2 . I didn't use any other plugins in this project currently. |
@demsey2 For you it might be the order of the plugins in the |
@ozbillwang ... and yes, we use SLS 1.24.1 at work (I use these projects to find out about incompatibilities early 😄 ). But, do you have some custom resources defined in your |
Released with 1.5.1 |
Add the plugin in my exist serverless.yml
But got below error , when deploy:
The text was updated successfully, but these errors were encountered: