<p dir="ltr">I really have preferred shell and c. boto seems too much of abstraction but it might be a helpful thing in putting down the entire idea. </p>
<p dir="ltr">I said all those things with respect to a simpler or maybe obvious approach.<br></p>
<p dir="ltr">Sorry for making you read those long texts...!!! :P</p>
<div class="gmail_quote">On Apr 6, 2016 22:13, &quot;Roy Vaccaro Jr.&quot; &lt;<a href="mailto:rvaccaro@stevens.edu">rvaccaro@stevens.edu</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I should have been more specific about my problem.  I am using boto to interface with AWS.   Boto is supposed to read ~.aws/credentials to get the pertinent key information to even make an aws connection before even spinning up an instance.    What I found is though the boto documentation specifies that it will read the credentials file it does not.  It will read the ~/.boto file for the key info.   I found a workaround that works for me.  I was more curious if other folks were using any of the programming interfaces for AWS besides standard shell and they had similar issues.   <div><br></div><div>Thanks for all the good info though.</div><div><br></div><div>Roy</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 6, 2016 at 9:39 PM, Avineshwar Singh <span dir="ltr">&lt;<a href="mailto:asingh16@stevens.edu" target="_blank">asingh16@stevens.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">One more thing.</div><div class="gmail_extra"><br></div><div class="gmail_extra">If a volume-id is specified, that means it is already existing in some availability zone (with or w/o FS). Hence, the instance has to be created in that availability zone but not every ami-id is supported in every zone. There should be a query of volume&#39;s zone and then choose an instance to create, in that availability zone.</div><div class="gmail_extra"><br></div><div class="gmail_extra">And that is bad.</div><div><div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 6 April 2016 at 18:52, Avineshwar Singh <span dir="ltr">&lt;<a href="mailto:asingh16@stevens.edu" target="_blank">asingh16@stevens.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Why would you do anything to <b>~/.aws/credentials</b> ?<div>If it has something to do with changing your region (as a pre-created volume&#39;s zone should match with our instance&#39;s zone; here, volume&#39;s zone is a constraint), probably it is achievable by suppressing the output of <b>aws configure </b>and changing the value of region to the region where our volume is present, since there should be no user interaction once the tool is running.</div><div><br></div><div>However, since this script is to help the user, user has to be cooperative (like following specific formats of saving environment variable which we will consume, et cetera). This information should be reflected in our script&#39;s help because the user will anyway have to refer to help part when he will trying to use it for the first time and just for the sake of running this tool, there will not be a requirement to change the environment variables permanently rather it will be ephemeral, like: even if he assigns a variable to something that we want him to put for the tool to work, it will only be there for that particular shell window (another shell window will reflect his permanent value, not this one). So, we can use his variables by, optionally, making him choose to save those environment variable in a specific format. This is not the only way. Standardization of this tool is going to take some more effort.</div><div><br></div><div><br></div><div>The best thing to do is make the user to cooperate with the tool, however, we have to keep in mind that we don&#39;t break the rules we need to follow while creating this tool (no user interaction, no useless outputs, no setting or modification of environment variables, no temporary files).</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On 6 April 2016 at 18:11, Roy Vaccaro Jr. <span dir="ltr">&lt;<a href="mailto:rvaccaro@stevens.edu" target="_blank">rvaccaro@stevens.edu</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">In working on the HW assignment I found if you use one of the AWS SDK&#39;s the location for credentials is different from the command line &quot;aws ec2&quot;   <div><br></div><div>For  example using boto in python the library will look for the credentials in either a .boto file or ~/.aws/credentials (You can also use environment variables)</div><div><br></div><div>Should the tool require the user to have one of these files or the env variables in place?</div><div><br></div><div>Thanks</div><span><font color="#888888"><div>Roy</div><div><br></div></font></span></div>
<br></div></div>_______________________________________________<br>
cs615asa mailing list<br>
<a href="mailto:cs615asa@lists.stevens.edu" target="_blank">cs615asa@lists.stevens.edu</a><br>
<a href="https://lists.stevens.edu/mailman/listinfo/cs615asa" rel="noreferrer" target="_blank">https://lists.stevens.edu/mailman/listinfo/cs615asa</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font face="trebuchet ms, sans-serif" size="4"><br></font></div><div><font face="trebuchet ms, sans-serif" size="4"><br></font></div><div><font face="trebuchet ms, sans-serif" size="4"><br></font></div><font face="trebuchet ms, sans-serif" size="4">Student,<div><font face="trebuchet ms, sans-serif" size="4">Avineshwar Pratap Singh,</font></div><div><font face="Trebuchet MS" size="4">MS (in CyberSecurity),</font></div><div><font face="Trebuchet MS" size="4">Stevens Institute of Technology</font></div><div><br></div><div><div style="width:100%;color:blue;background-color:white"><a style="color:blue;text-decoration:underline!important" href="https://ws.evercontact.com/kwaga-bin/titan/WEB/me.pl/4177400521440368238/i" target="_blank">[+] <span>Add me to your address book</span></a></div></div></font></div></div></div></div></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font face="trebuchet ms, sans-serif" size="4"><br></font></div><div><font face="trebuchet ms, sans-serif" size="4"><br></font></div><div><font face="trebuchet ms, sans-serif" size="4"><br></font></div><font face="trebuchet ms, sans-serif" size="4">Student,<div><font face="trebuchet ms, sans-serif" size="4">Avineshwar Pratap Singh,</font></div><div><font face="Trebuchet MS" size="4">MS (in CyberSecurity),</font></div><div><font face="Trebuchet MS" size="4">Stevens Institute of Technology</font></div><div><br></div><div><div style="width:100%;color:blue;background-color:white"><a style="color:blue;text-decoration:underline!important" href="https://ws.evercontact.com/kwaga-bin/titan/WEB/me.pl/4177400521440368238/i" target="_blank">[+] <span>Add me to your address book</span></a></div></div></font></div></div></div></div></div></div>
</div></div></div></div>
<br>_______________________________________________<br>
cs615asa mailing list<br>
<a href="mailto:cs615asa@lists.stevens.edu" target="_blank">cs615asa@lists.stevens.edu</a><br>
<a href="https://lists.stevens.edu/mailman/listinfo/cs615asa" rel="noreferrer" target="_blank">https://lists.stevens.edu/mailman/listinfo/cs615asa</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
cs615asa mailing list<br>
<a href="mailto:cs615asa@lists.stevens.edu">cs615asa@lists.stevens.edu</a><br>
<a href="https://lists.stevens.edu/mailman/listinfo/cs615asa" rel="noreferrer" target="_blank">https://lists.stevens.edu/mailman/listinfo/cs615asa</a><br>
<br></blockquote></div>