umegaya / lua-aws

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

on demain initialization of API #66

Open umegaya opened 5 years ago

umegaya commented 5 years ago

motivation

local aws = AWS.new({
    accessKeyId = os.getenv('AWS_ACCESS_KEY'),
    secretAccessKey = os.getenv('AWS_SECRET_KEY'),
})
aws.EC2:api({ --specific config for ec2. if omitted, default config passed to AWS.new will be used
    accessKeyId = os.getenv('EC2_AWS_ACCESS_KEY'),
    secretAccessKey = os.getenv('EC2_AWS_SECRET_KEY'),
}):describeInstances()

thought