diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 80927fa7cd6097ca6800d6987cf6239b98415597..7b4efd66ce665e7995817f9b0c85e559cd3f58eb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: - id: check-yaml - id: detect-private-key - id: end-of-file-fixer - exclude: VERSION + exclude: VERSION|test_files - id: trailing-whitespace - repo: https://github.com/codespell-project/codespell.git diff --git a/test_files/packer.json b/test_files/packer.json index e26c6e1c5b18fb042ab7546b07d544df09bb5364..7883488601cefd329259fa400c4aa86c602f671e 100644 --- a/test_files/packer.json +++ b/test_files/packer.json @@ -1,16 +1,19 @@ { + "builders": [ + { + "access_key": "{{user `access_key`}}", + "ami_name": "packer-example {{timestamp}}", + "instance_type": "t1.micro", + "region": "us-east-1", + "secret_key": "{{user `access_key`}}", + "source_ami": "ami-de0d9eb7", + "ssh_username": "ubuntu", + "type": "amazon-ebs" + } + ], "variables": { "access_key": "{{env `AWS_ACCESS_KEY_ID`}}", "secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}" - }, - "builders": [{ - "type": "amazon-ebs", - "access_key": "{{user `access_key`}}", - "secret_key": "{{user `access_key`}}", - "region": "us-east-1", - "source_ami": "ami-de0d9eb7", - "instance_type": "t1.micro", - "ssh_username": "ubuntu", - "ami_name": "packer-example {{timestamp}}" - }] + } } +