Skip to content

Instantly share code, notes, and snippets.

@ryanvgates
Created July 27, 2022 20:00
Show Gist options
  • Save ryanvgates/9fd6590c653a35c90aed68e9eaeb3ee7 to your computer and use it in GitHub Desktop.
Save ryanvgates/9fd6590c653a35c90aed68e9eaeb3ee7 to your computer and use it in GitHub Desktop.
Terraform Linting in CI
..[ryan@server] - [~/my-project] - [Wed May 11, 02:42]
..[$] <( (git)-[main]-)> terraform fmt -check -diff
tf_code.tf
--- old/tf_code.tf
+++ new/tf_code.tf
@@ -5,5 +5,5 @@
resource "aws_s3_bucket" "tf_course" {
bucket = "tf-course-20220511"
acl = "private"acl = "private"
}
\ No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment