I am currently trying out n8n, which seems to be a wonderful and flexible workflow builder that fits my needs in every way but one critical one: I cannot figure out how to call an AWS API gateway endpoint.
Currently, there are many AWS functions (S3, Lambda, SQS…), but there is a surprising lack of API gateway node.
There would be an alternative: as the API gateway is a simple HTTP request it could be fulfilled with the HTTP request node. However, out of all the predefined authentication options for the HTTP request node, AWS is not available.
I am not familiar with the AWS API gateway, it seems like a normal Oauth2 authentication that is needed.
Luckily this is fairly easily done. If you choose for the Generic Credential type you can select OAuth2.
I know this isn’t the easiest thing compared to the other options, but please give it a go.
If you cannot fix it like this, please post some more information on how far you have gotten and where you got stuck.
I seems the AWS API does not quite support the OAuth2 method, rather it uses the AWS-IAM method. Somehow, it is possible to use OAuth2, but it requires further work and components setup (AWS Lambda?). However, I wish to do it directly and it’s almost possible.
The AWS-IAM is currently supported in other AWS nodes: it needs the username, AWS access key ID and AWS secret access key. It’s essentially a more complicated HTTP authentication method, involving some signage, but otherwise done using headers.
It would be great if that method could also be selected in the HTTP request node.