- Explore the Packer for Packer CLI >= v1.8.0+
Add your AWS credentials as two environment variables, AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, replacing AAAAAA with each respective values.
$ export AWS_ACCESS_KEY_ID=AAAAAA
$ export AWS_SECRET_ACCESS_KEY=AAAAABuild basic eks image with packer hashicorp
Install project dependencies
packer init .The packer fmt command updates templates in the current directory for readability and consistency.
packer fmt .You can also make sure your configuration is syntactically valid and internally consistent by using the packer validate command.
packer validate .Build the image with the packer build command.
packer build .