Packer image builds
- provision -> Scripts/Playbooks used in packer image provisioners
- packer_gitlabrunner_local.json -> Build an Amazon Linux 2 EC2 AMI, using a GitLab Runner Ansible playbook in local mode.
- packer_gitlabrunner_remote.json -> Build an Amazon Linux 2 EC2 AMI, using a GitLab Runner Ansible playbook in remote mode.
packer validate packer_gitlabrunner_remote.json
Show information about a packer file, such as the variables, builders, provisioners, etc.
packer inspect packer_gitlabrunner_remote.json
packer build packer_gitlabrunner_remote.json
packer build -var 'aws_subnet_id=subnet-123456789' -var 'aws_security_group_id=sg-123456789' packer_gitlabrunner_remote.json
packer build -var-file=my_vars.json packer_gitlabrunner_remote.json
File: my_vars.json
{
"aws_subnet_id": "subnet-123456789",
"aws_security_group_id": "sg-123456789"
}