How to setup AWS EC2 as remote server, where i have public DNS / IP Address and key file (.pem)?

After getting trellis and bedrock, i set up for local environment and run ‘vagtant up’, And if done perfectly.

To deploy production i changed hosts/production file like

[production]
xx.xx.xx.amazonaws.com

[web]
xx.xx.xx.amazonaws.com

But when i am running
ansible-playbook deploy.yml -e site=xx.com -e env=production --private-key=xxx.pem

that does not work.

How can i solve this problem.

This topic was automatically closed after 42 days. New replies are no longer allowed.