To configure fabric to connect to remote hosts using SSH keyfiles on Amazon EC2 instances.
add the following after REPO_URL (If you are following OBTTG Tutorial : Chapter 11):
1 2 3 4 |
REPO_URL = 'https://github.com/XXX/YYY' env.user = "ubuntu" env.key_filename = ["/path/to/key/keypair.pem"] env.hosts = ["xxx-xx-xxx-xxx.ap-southeast-1.compute.amazonaws.com"] |