Skip to content

Instantly share code, notes, and snippets.

@tristanmorgan
Created April 28, 2023 04:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tristanmorgan/3b105144389bf18294b2e2bfb05a4f2f to your computer and use it in GitHub Desktop.
Save tristanmorgan/3b105144389bf18294b2e2bfb05a4f2f to your computer and use it in GitHub Desktop.
Generate an AWS access key ID and secret that passes the regex in AWSKeyring.
#!/usr/bin/env ruby
require 'securerandom'
puts "AKIA#{Array.new(16){[*"A".."Z", *"2".."7"].sample}.join}"
puts SecureRandom.base64(30)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment