AWS S3 Proxy: JavaScript iRuleLX
Problem this snippet solves: Create a secure proxy to AWS S3 via iRule/IRuleLX
Related Article: Creating a Secure AWS S3 Proxy with F5 iRulesLX How to use this snippet: Install iRule via iRules...
Published Jul 21, 2017
Version 1.0Eric_Chen
Employee
Joined May 16, 2013
Eric_Chen
Employee
Joined May 16, 2013
Eric_Chen
Oct 12, 2018Employee
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:
- Using an IAM Role assigned to the Instance that is executing the SDK
- Providing IAM credentials that contain the AWS Access ID/Key
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!