[ec2-beta] Get AWS keys from within instance?

Michael Greenly mgreenly at gmail.com
Mon Feb 2 22:32:18 GMT 2009


You can get the public key with something like

curl -s http://169.254.169.254/1.0/meta-data/public-keys/0/openssh-key/

but I don't think you can get the private key

On Mon, Feb 2, 2009 at 2:48 PM, Darren Govoni <darren at ontrenet.com> wrote:

> Hi,
>  In my ongoing effort to auto-configure my Ubuntu EC2 image on-the-fly
> I find a need to get the AWS keys associated with the account under
> which the instance is booting. This is so the services I run inside the
> instance have the correct keys to communicate back to AWS without
> requiring them to come from the user or some other untrusted source.
>
> Is it possible (similar to the metadata link) to get the keys from
> within the instance?
>
> Thank you!
> Darren
>
>
> --
> Ec2-beta mailing list
> Ec2-beta at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ec2-beta
>



-- 
Michael Greenly
http://blog.michaelgreenly.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/mailman/private/ec2/attachments/20090202/3f79e094/attachment-0002.htm 


More information about the Ec2-beta mailing list