rstudio / fuzzbucket

a simplified means to CRUD ephemeral user-scoped EC2 instances
MIT License
7 stars 2 forks source link

Ubuntu 20 support #37

Closed joncfoo closed 4 years ago

joncfoo commented 4 years ago

Heyo, I'd like to add support for Ubuntu 20 but I'm not sure where to start. FWICT I need to add an image_alias but I can't seem to locate where the mapping between aliases and AMIs are located. Could I get some pointers?

meatballhat commented 4 years ago

The image aliases are stored in the server side dynamodb store, which you (thankfully!) don't need to access directly as the API allows CRUDdy managament:

$ fuzzbucket-client create-alias trusty ami-08bc77a2c7eb2b1da
# fuzzbucket:INFO:2020-06-09T111127:: created alias for user='meatballhat' alias=trusty ami=ami-08bc77a2c7eb2b1da
[image_aliases]
trusty = ami-08bc77a2c7eb2b1da

$ fuzzbucket-client la
[image_aliases]
centos6 = ami-03a941394ec9849de
centos7 = ami-0affd4508a5d2481b
centos8 = ami-0e7ad70170b787201
opensuseleap = ami-05120304eb067176e
rhel6 = ami-0b1d4c689c7949a64
rhel7 = ami-0916c408cb02e310b
rhel8 = ami-0c322300a1dd5dc79
sles12 = ami-1eeab909
sles15 = ami-0b1764f3d7d2e2316
trusty = ami-08bc77a2c7eb2b1da
ubuntu16 = ami-08bc77a2c7eb2b1da
ubuntu18 = ami-046842448f9e74e7d

$ fuzzbucket-client delete-alias trusty
# fuzzbucket:INFO:2020-06-09T111423:: deleted alias for user='meatballhat' alias=trusty
joncfoo commented 4 years ago

Ah! Thanks :)