[cs615asa] [CS615] Boto EC2 Keypair
Andrew Neurohr
aneurohr at stevens.edu
Wed May 16 17:10:07 EDT 2018
I'm not using Boto, so I'm not sure how I would handle it in your
case. This answer to my previous question might be useful to you:
On Tue, May 15, 2018 at 12:36 PM, Jan Schaumann <jschauma at stevens.edu> wrote:
> Andrew J Neurohr <aneurohr at stevens.edu> wrote:
>
>> The manpage says that ec2-backup doesn't create any temporary files.
>> Does this apply to the key file we may have to create if the user does
>> not specify the key-name in EC2_BACKUP_FLAGS_AWS? If so, should the
>> program fail if the user does not provide this information?
>
> Your program should not check the environment variable for what it may
> contain. It is up to the user to set it, if they need. A user may also
> have their ~/.ssh/config set up such that nothing needs to be done to
> have ssh use a specific ssh key.
>
> Your program can thus invoke e.g. 'aws ec2 ${EC2_BACKUP_FLAGS_AWS}' or
> 'ssh ${EC2_BACKUP_FLAGS_SSH}' without specifying any other flags that
> would be specific to a user's credentials or keys.
-Andrew Neurohr
More information about the cs615asa
mailing list