You are almost correct. User data can be modified after the
instance is up using ec2-modify-instance-attribute, however this
is cumbersome and requires the instance to be stopped first (and
naturally only works with EBS based amis). sigh. The secure, convenient option would be a signed s3 link set to expire in 15 minutes, this however forces you to generate user-data using templates (i use erubies) and doesn't work with autoscaling. In short, if you want a method that works with autoscaling and
doesn't require bundling an ami, you're screwed security-wise.
Unless someone in this list figures how to do it of course...
i've considered ip bound one-time tokens but decided against
implementing yet another security layer. I bake ami's with
validation.pem when i can and take my chances when i don't have
the time. Regards, Avishai
" type="cite">Avishai, |
begin:vcard fn:Avishai Ish-Shalom n:Ish-Shalom;Avishai org:FewBytes technologies adr:;;7 Jabotinsky St.;Ramat-Gan;;52520;Israel email;internet: title:IT Consultant tel;work:+972-3-5444-230 tel;fax:+972-3-5444-720 tel;cell:+972-54-4466499 note:skype: avishaiish x-mozilla-html:TRUE url:http://www.fewbytes.com/ version:2.1 end:vcard
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
Archive powered by MHonArc 2.6.16.