basic ec2 and s3 working
This commit is contained in:
parent
6a060dfd7e
commit
77d6df6531
33 changed files with 561 additions and 1 deletions
|
|
@ -9,7 +9,6 @@ Imagine you have the following code that you want to test:
|
|||
```python
|
||||
import boto
|
||||
from boto.s3.key import Key
|
||||
conn = boto.connect_s3()
|
||||
|
||||
class MyModel(object):
|
||||
def __init__(self, name, value):
|
||||
|
|
@ -17,6 +16,7 @@ class MyModel(object):
|
|||
self.value = value
|
||||
|
||||
def save(self):
|
||||
conn = boto.connect_s3()
|
||||
bucket = conn.get_bucket('mybucket')
|
||||
k = Key(bucket)
|
||||
k.key = self.name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue