Skip to content

Instantly share code, notes, and snippets.

View mattmahn's full-sized avatar

Matt Mahnke mattmahn

View GitHub Profile
@mattmahn
mattmahn / README.md
Last active December 4, 2024 18:16
Terraform: Get current Git commit SHA

This will return the full Git commit SHA of whichever branch is currently checkedout.

Dump the snippet into terraform console (run from within a Git repo) to see for yourself.