terraform output bastion_private_key terraform output -raw bastion_private_key > bastion-key.pem chmod 400 bastion-key.pem
terraform output aws_app_server_1_private_key terraform output -raw aws_app_server_1_private_key > aws_app_server_1_private_key.pem chmod 400 aws_app_server_1_private_key.pem
terraform output aws_app_server_2_private_key terraform output -raw aws_app_server_2_private_key > aws_app_server_2_private_key.pem chmod 400 aws_app_server_2_private_key.pem
ssh -i ./bastion-key.pem ec2-user@ec2-xxxx.compute-1.amazonaws.com
scp -i ./bastion-key.pem ./ws_app_server_1_private_key.pem ec2-user@bastion_ip:~ scp -i ./bastion-key.pem ./ws_app_server_2_private_key.pem ec2-user@bastion_ip:~
git clone https://github.com/hectorlopezv/cloudcamp-devops-final-project.git cd cloudcamp-devops-final-project/ansible ansible-playbook playbooks/webserver.yaml
mysql -u -p -h <mysql_server_dns>