-
Notifications
You must be signed in to change notification settings - Fork 7
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
Missing 'credentials' when the integration type is Lambda function #3
Comments
Could you please provide more information what kind of credentials are missing? |
In "x-amazon-apigateway-integration" section, I got type / httpMethod / uri, but 'credentials' is not present, which is to set the role that makes the API call the target Lambda function. |
Interesting, how did you create your API? Did you use API Gateway Importer or created it manually? |
I created the API manually using the AWS API Gateway console. |
How do you specify the role when you select lambda integration type for your API resource/method? |
Yes, it does NOT ask the role and it seems like adding a necessary role internally. I tried to find the role in IAM console, but couldn't. Not sure how they manage it. |
After some research I found this
And I have the same observation: when I use API Gateway console for lambda integration it doesn't create or update anything in IAM. So looks like authorization is done internally. To handle this case I can add a command line argument "default execution role". If no credentials were explicitly set for integration then it will use the default value while exporting. |
Is this expected or is there anything I should add when running the command?
The text was updated successfully, but these errors were encountered: