Skip to content

AWS signature V4 library for OpenResty + Lua

License

Notifications You must be signed in to change notification settings

HubSpot/lua-resty-aws

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

lua-resty-aws

AWS signature V4 library for OpenResty + Lua.

Overview

This library implements request signing using the AWS Signature Version 4 specification. This signature scheme is used by nearly all AWS services.

Example

location / {
    set $s3_host s3.amazonaws.com;
    set $s3_uri $request_uri;
    access_by_lua "local aws = require 'resty.aws'; aws.s3_set_headers(ngx.var.access_key, ngx.var.secret_key, ngx.var.s3_host, ngx.var.s3_uri)";
    proxy_pass https://$s3_host$s3_uri;
}

About

AWS signature V4 library for OpenResty + Lua

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Lua 100.0%