Hello,
In a AWS cloud environment (personal account), I have a EC2 instance acting as Docker Host and another EC2 instance that runs Jenkins. From Jenkins master, I have successfully configured to fire up container slaves in the Docker Host -- intent is to have these containers as build agents.
FYI, EC2 instance acting as the Docker Host is assigned an IAM role that has complete access to create ec2 instances, key parirs, et al.
With this setup, am attempting to run a packer build, from one of the containers, to create a AMI. However, packer builds fails complaining about the lack of permissions to launch source instance.
FWIW, am using amazon-ebs builder in Packer template. Will it help if the builder is changed to chroot ?
The build jobs are run as non-root user.
Any help would be appreciated ?
/Ram