Is it possible to use Velocity Services to consume a webservice that has its authentication system based on the AWS request signing process (Create a signed AWS API request - AWS Identity and Access Management)
Velocity services are API agnostic, meaning the plugin knows nothing of the underlying constraints of authentication of the API you want to use (there are tons of API out there each with their own flavor of authentication).
Meaning that to build signed requests, you would have to create the whole signing out of Velocity and then add the Authorization header to the service request.
The process is not a simple one though because it happens in many steps of encoding and needs a precise knowledge of the content (including headers, body and encoded parameters) of the request as well as your API Key and Secret Key.
Best do that in a dedicated plugin really, one that would leverage the AWS SDK and wrap the needed services call.
I’ve done such a plugin for a limited number of services (s3 file API and SQS messaging) for one of my client.
Let me know your requirements and I can probably build something for your needs.
You want the AWS Java SDK wrapped in a Servoy plugin.
An alternative option would be to create a small NodeJS application with the AWS Javascript SDK and proxy your requests through it. Some advantages: you’re coding in Javascript like you’re used to, you can add features without rebuilding a plugin, you can keep up-to-date with SDK releases, as a dedicated service it scales and can serve more than one app, etc.
One of the current trends that is hot right now and which I really like is micro-services. It’s trivial to spin up a server/app (in any language) that does one thing really well. Communicating via REST/JSON between services is super easy. The main downside is that you’re are increasing your devops load. Getting up to speed with tools for imaging/installing, monitoring, load balancing, scaling, etc becomes increasingly important as you add services in this fashion.
As Servoy continues to fall behind the tech curve I think this approach is going to be important for keeping current Servoy installations running.