umegaya / lua-aws

pure-lua implementation of aws REST APIs
122 stars 35 forks source link

Add Credentials class #70

Closed nkzawa closed 5 years ago

nkzawa commented 5 years ago

Added lua-aws.credentials and enabled to pass it as an option.

local Credentials = require('lua-aws.credentials')
local credentials = Credentials.new({
  accessKeyId = accessKeyId,
  secretAccessKey = secretAccessKey,
})
local aws = AWS.new({
  credentials = credentials,
  ...
})