Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Notes on use with ec2_tools

  • Loading branch information...
commit 0f48e2036b1f7a5a52637558461a361a80e78708 1 parent 67d4a19
@mnielsen authored
Showing with 12 additions and 3 deletions.
  1. +3 −1 README.md
  2. +1 −1  ec2
  3. +8 −1 fabfile.py
View
4 README.md
@@ -18,7 +18,9 @@ and
# Installation and useage
-To be added.
+To be added. Note that `mini_qa` was written with the `v0.01` version
+of `ec2_tools` in mind:
+[code available here](https://github.com/mnielsen/ec2_tools/tree/v0.01).
# Note on contributions and pull requests
2  ec2
@@ -1 +1 @@
-Subproject commit 06cdc2017242b8c0eed9a594483292ddc9596d52
+Subproject commit 8c5999d5a4b341d7c4577e33c2d2c95d0f31efea
View
9 fabfile.py
@@ -20,13 +20,20 @@
# My libraries
import config
-import ec2
+import ec2.ec2 as ec2
env.hosts = ec2.public_dns_names("mini_qa")
env.user = 'ubuntu'
env.key_filename = ["%s/%s.pem" % \
(os.environ["AWS_HOME"], os.environ["AWS_KEYPAIR"])]
+def start():
+ """
+ Create an EC2 instance, set it up, and login.
+ """
+ first_deploy()
+ ec2.login("mini_qa", 0)
+
def first_deploy():
"""
Sets up the initial git repository and other files, then do a
Please sign in to comment.
Something went wrong with that request. Please try again.