Skip to content

Instantly share code, notes, and snippets.

@rms1000watt
Created May 8, 2019 23:26
Show Gist options
  • Save rms1000watt/b9ef8136667ebbb02fca17c1dd40a292 to your computer and use it in GitHub Desktop.
Save rms1000watt/b9ef8136667ebbb02fca17c1dd40a292 to your computer and use it in GitHub Desktop.
Generate base64 sha256 the same way as AWS Lambda as seen by Terraform's `source_code_hash`
#!/usr/bin/env bash
openssl dgst -sha256 -binary lambda.zip | base64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment