AWS S3 Proxy: JavaScript iRuleLX
Published Jul 21, 2017
Version 1.0Was this article helpful?
Your question is more related to Node.JS than being specific to iRulesLX.
When you use the AWS Node.JS SDK, it has two methods of authenticating:
Method 1 is documented here:
https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-iam.html
Method 2 is documented here:
For your use-case, you would decide which method is preferred and grant the appropriate IAM permissions to access the resource (S3 Bucket).
You could take a similar approach to make a call out to Lambda or any other AWS Service that is accessible via the AWS Node.JS SDK.
Happy Coding!