Skip to content

Commit e698cbe

Browse files
committed
Update readme regarding json config limitations
1 parent 2ecdf77 commit e698cbe

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ $ packer init examples/basic_example.pkr.hcl
3636
Installed plugin github.com/upcloudltd/upcloud v1.0.0 in "/Users/johndoe/.packer.d/plugins/github.com/upcloudltd/upcloud/packer-plugin-upcloud_v1.0.0_x5.0_darwin_amd64"
3737
```
3838

39+
From Packer version 1.7.0, template HCL2 becomes officially the preferred way to write Packer configuration. While the `json` format is still supported, but certain new features, such as `packer init` works only in newer HCL2 format.
40+
If you are using `json` config templates, please consider upgrading them using the packer built-in command:
41+
42+
```sh
43+
$ packer hcl2_upgrade example.json
44+
Successfully created example.json.pkr.hcl
45+
```
46+
47+
3948
### Pre-built binaries
4049

4150
You can download the pre-built binaries of the plugin from the [GitHub releases page](https://github.com/UpCloudLtd/packer-plugin-upcloud/releases). Just download the archive for your operating system and architecture, unpack it, and place the binary in the appropriate location, e.g. on Linux `~/.packer.d/plugins`. Make sure the file is executable, then install [Packer](https://www.packer.io/).

0 commit comments

Comments
 (0)