This repository was archived by the owner on Mar 13, 2020. It is now read-only.
Assume Role Support
Pre-release
Pre-release
Changes
- Add
CONNECTION_DATA_ROLE_KEYconstant - Add
CONNECTION_DATA_FUNCTION_KEYconstant - Add
CONNECTION_DATA_TENANT_KEYconstant - Add
AWS_SERVICE_LAMBDAconstant - Add
AWS_SERVICE_S3constant - Add
stsclient toAWSLambdaDataSource - Add
__assume_role(...)method- Returns credentials from response
- Add
__get_aws_client(...)method - Add
__refresh_aws_clients_if_expired(...)method - Reformat code
Notes
Assume Role
The following clients will now be instantiated with AWS credentials:
- Lambda
- S3
If the clients are nearing their expiration date (~5 minutes), we will re-assume the role for a fresh set of credentials and update the clients accordingly.
AWS Lambda Connection String
Now expects role=arn:aws:iam:{accountId}:role/{roleName}