This is a packer template to build a box for Ecodev cloud and publish it on https://portal.cloud.hashicorp.com/vagrant/discover/Ecodev. It is based on chef/bento.
To build locally:
- Create a new key on for the service principal "Box uploader" on https://portal.cloud.hashicorp.com/ >
Access control (IAM)
>Service principals
>box-uploader
>Keys
>Generate key
- Set the key as the environment variable
HCP_CLIENT_ID
andHCP_CLIENT_SECRET
- Install packer plugins:
packer init .
- Build the box and automatically upload to https://portal.cloud.hashicorp.com/vagrant/discover/Ecodev:
packer build .