$ ansible-galaxy install -r ansible/galaxy/requirements.yml
- Create the
credentials.json
file underpacker/amazon
with the following format:
{
"aws_access_key": "<your-aws-access-key>",
"aws_secret_key": "<your-aws-secret-key>"
}
- Execute packer:
packer build -var-file=packer/amazon/credentials.json -var-file=packer/amazon/variables.json packer/amazon/ubuntu/frontend/base_ami.json
-
Create an EC2 instance manually using the created AMI.
-
Access to EC2 instance via SSH using .pem to test installation
ssh -i aws.pem ubuntu@<ip-instance>