Before change ``` ⇶ packer fmt -check /tmp/unformatted.pkrvars.hcl Error: Cannot tell whether /tmp/unformatted.pkrvars.hcl contains HCL2 configuration data ⇶ echo $? 1 ``` After fix ``` ⇶ packer fmt -check /tmp/unformatted.pkrvars.hcl /tmp/unformatted.pkrvars.hcl ⇶ echo $? 3 ⇶ packer fmt -check command/test-fixtures/fmt command/test-fixtures/fmt/unformatted.pkr.hcl command/test-fixtures/fmt/unformatted.auto.pkrvars.hcl command/test-fixtures/fmt/unformatted.pkrvars.hcl ```
12 lines
147 B
HCL
12 lines
147 B
HCL
variable "region" {
|
|
type =string
|
|
}
|
|
|
|
source "amazon-ebs" "example" {
|
|
region = var.region
|
|
}
|
|
|
|
build {
|
|
sources = ["source.amazon-ebs.example"]
|
|
}
|