git://git.onelab.eu
/
plstackapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c118f0b
)
Run aws commands with custom credentials
author
Sapan Bhatia
<gwsapan@gmail.com>
Mon, 8 Sep 2014 07:26:35 +0000
(
03:26
-0400)
committer
Sapan Bhatia
<gwsapan@gmail.com>
Mon, 8 Sep 2014 07:26:35 +0000
(
03:26
-0400)
planetstack/ec2_observer/awslib.py
patch
|
blob
|
history
diff --git
a/planetstack/ec2_observer/awslib.py
b/planetstack/ec2_observer/awslib.py
index
5df0768
..
ca708ff
100644
(file)
--- a/
planetstack/ec2_observer/awslib.py
+++ b/
planetstack/ec2_observer/awslib.py
@@
-4,8
+4,8
@@
import json
class AwsException(Exception):
pass
-def aws_run(cmd):
- cmd = '
aws %s'%cmd
+def aws_run(cmd
,env=''
):
+ cmd = '
%s aws %s'%(env,cmd)
pipe = os.popen(cmd)
output_str = pipe.read()