Skip to content

Instantly share code, notes, and snippets.

View theprogramsam's full-sized avatar

Sam theprogramsam

View GitHub Profile
@theprogramsam
theprogramsam / aws_signed_request_v4.rb
Created April 28, 2018 02:46 — forked from blelump/aws_signed_request_v4.rb
Sample Ruby code to create AWS signed request version 4 (with request headers)
#Signing AWS Requests By Using Signature Version 4
#http://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html
require 'uri'
require 'openssl'
require 'net/http'
require 'cgi'
method = 'GET'
service = 'iam'