From fcb15dc55265e02d999d9897212f99ac3574c014 Mon Sep 17 00:00:00 2001 From: Malte Brodersen Date: Tue, 10 Oct 2017 16:57:18 +0200 Subject: [PATCH] add example --- .../terraform/expected/test.tf | 18 ++++++++++++++++ .../terraform/original/test.tf | 21 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 examples/simple-jsbeautifyrc/terraform/expected/test.tf create mode 100644 examples/simple-jsbeautifyrc/terraform/original/test.tf diff --git a/examples/simple-jsbeautifyrc/terraform/expected/test.tf b/examples/simple-jsbeautifyrc/terraform/expected/test.tf new file mode 100644 index 0000000..5f855b3 --- /dev/null +++ b/examples/simple-jsbeautifyrc/terraform/expected/test.tf @@ -0,0 +1,18 @@ +resource "aws_db_instance" "wordpress" { + # worng spaces # to much spaces + + allocated_storage = 10 + storage_type = "gp2" + engine = "mariadb" + engine_version = "10.0.24" + + instance_class = "db.t2.micro" + identifier = "db-${var.env}" + name = "wordpress" + + username = "wordpress" + password = "${var.wordpress_db_pass}" + db_subnet_group_name = "${aws_db_subnet_group.default.name}" + vpc_security_group_ids = ["${aws_security_group.RuleWebServerIn.id}"] + apply_immediately = true +} diff --git a/examples/simple-jsbeautifyrc/terraform/original/test.tf b/examples/simple-jsbeautifyrc/terraform/original/test.tf new file mode 100644 index 0000000..702bfe8 --- /dev/null +++ b/examples/simple-jsbeautifyrc/terraform/original/test.tf @@ -0,0 +1,21 @@ +resource "aws_db_instance" "wordpress" { + # worng spaces + # to much spaces + + allocated_storage = 10 + storage_type = "gp2" + engine = "mariadb" + engine_version = "10.0.24" + +instance_class = "db.t2.micro" + identifier = "db-${var.env}" + name = "wordpress" + + + + username = "wordpress" + password = "${var.wordpress_db_pass}" + db_subnet_group_name = "${aws_db_subnet_group.default.name}" + vpc_security_group_ids = ["${aws_security_group.RuleWebServerIn.id}"] + apply_immediately = true +}