Upgrade to Pro — share decks privately, control downloads, hide ads and more …

AWS SDK for Go を使って作ってみた話

uchimanajet7
September 08, 2015

AWS SDK for Go を使って作ってみた話

2015-09-08(火)21:00 - 22:30
JAWS-UG 千葉支部 Vol.5 懇親会 でのLT資料

uchimanajet7

September 08, 2015
Tweet

More Decks by uchimanajet7

Other Decks in Technology

Transcript

  1. 5 ‣ golang ༻ͷAWS SDK ‣ 2015/09/08 ݱࡏ Developer Preview

    ‣ GitHubΛ֬ೝ͢Δͱ͔ͳΓͷස౓Ͱߋ৽ ͕ߦΘΕ͍ͯΔͷ͕Θ͔Δ ‣ ϦϦʔε͞Ε͍ͯΔόʔδϣϯຖʹϦϦʔ εϊʔτ͕༻ҙ͞Ε͍ͯΔ AWS SDK for Goͱ͸ʁ
  2. 8 ‣ จࣈ௨ΓʹAWS SDK for GoΛ࢖ͬͯCLIπʔ ϧΛ࡞ͬͯΈͨ ‣ rds-try ͱ͍͏໊শͰ஍ຯʹެ։த

    ‣ ৄࡉͳ಺༰ʹ͍ͭͯ͸ README.md ͱ Blog ʹ·ͱΊͯهࡌࡁΈ ‣ ͳͷͰࠓճ͸؆୯ʹઆ໌͍ͯ͘͠ ࢖ͬͯ࡞ͬͯΈͨʂ
  3. 9 ‣ ੍ݶࣄ߲ͱͯ͠ - Amazon RDS for MySQL ͷΈʹରԠ -

    ಈ࡞͍ͯ͠ΔRDSΠϯελϯε͕ඞཁ - APIݺͼग़͠ͰΤϥʔͷ৔߹࠶ݺͼग़͠ແ͠ - ࣮ߦঢ়ଶΛ௨஌͢Δػೳ͸ແ͠ - Tagͷ಺༰ͰπʔϧͰͷ࡞੒ͳͷ͔Λ൑அ - ΤϥʔͰऴྃͨ͠৔߹ͦͷঢ়ଶͷ·· ࢖ͬͯ࡞ͬͯΈͨʂ
  4. 10 ‣ ͳͥ࡞ͬͨͷ͔ʁ - ීஈ͸͋·Γෛՙ͕ͳ͍ͨΊϚΠΫϩΠϯελϯεͰे෼ - DBʹ͸਺ेສ݅ͷϨίʔυ͕͋Δ - Ϩίʔυ਺͕ͦͦ͋͜͜ΔͷͰूܭ΍όονॲཧʹ࣌ؒ ͕͔͔Δ͕࣌͋Δ

    - ॲཧதʹϦιʔεΛ࢖͍Ռͨͯ͠͠·͍؂ࢹ͕൓Ԡ͢Δ ͕࣌͋Δ - ॲཧ͢Δ͚࣌ͩΠϯελϯελΠϓΛมߋͰ͖ͨΒศར ࢖ͬͯ࡞ͬͯΈͨʂ
  5. 12 ‣ ग़དྷΔ͜ͱ͸ʁ - εφοϓγϣοτ͔ΒͷΠϯελϯε࡞੒ • ৽نεφοϓγϣοτͷ࡞੒ - ࡞੒ͨ͠ΠϯελϯεͷҰཡදࣔ •

    ࡞੒ͨ͠εφοϓγϣοτͷҰཡදࣔ - ࡞੒ͨ͠Πϯελϯεͷ࡟আ • ࡞੒ͨ͠εφοϓγϣοτͷ࡟আ - ΫΤϦʔ࣮ߦ࣌ؒܭଌ - ΫΤϦʔ݁ՌϑΝΠϧग़ྗ ࢖ͬͯ࡞ͬͯΈͨʂ
  6. 13 ‣ ࢖ͬͯΈΔʹ͸ʁ - ϦϦʔεϖʔδ ͔ΒϑΝΠϧΛμ΢ϯϩʔυ - ࣮ߦ؀ڥʹରԠͨ͠΋ͷΛར༻͢Δ - ίϯϑΟάϑΝΠϧΛ࡞੒͢Δ

    - ΫΤϦʔϑΝΠϧΛ࡞੒͢Δ - ϑΝΠϧ͕ग़ྗ͞ΕΔͷͰݖݶͷ֬ೝ - ޙ͸ίϚϯυΛ࣮ߦ͢Δ͚ͩʂ ࢖ͬͯ࡞ͬͯΈͨʂ
  7. 15 ‣ AWS SDK for Goˍgolangָ͍͠Ͱ͢ ‣ ͨͱ͑ࣗ෼༻ͩͱͯ͠΋ϓϩμΫτΛ࡞ͬͯ AWS SDKΛར༻͢Δͷ͸͓͢͢Ί

    ‣ ϓϩμΫτ͕͋ΔࣄͰఆظతʹAWS SDKͷ ͜ͱΛؾʹ͢Δඞཁ͕͋Δ ·ͱΊ
  8. 16 ‣ AWS SDKʹ͍ͭͯ΋publicॳظ͔Βܧଓతʹݟͯ ͍ΔͷͰѪண͕൒୺ͳ͍ ‣ ར༻͍ͯ͠ΔAWS SDK͕খมߋ͞Ε͚ͨͩͰ΋੝ Γ্͕ΕΔʂ ‣

    AWS SDK΋ॳظ͸AWS APIʹ͍ۙجຊతͳؔ਺͠ ͔ͳ͍ͨΊߏஙखॱ͸ଟ͘ͳΔ͕ɺͦΕʹൺྫͯ͠ AWS APIˍSDK΁ͷཧղ౓ͱѪண౓͕૿͢ ·ͱΊ
  9. 20 ‣ ஗͘ͳΓ·͕ͨ͠ࠓ೥΋։࠵͠·͢ ‣ JAWS−UG in ߴඌࢁʂʂ ‣ ࠓ೥͸தԝઢˍژԦઢͷ߹ಉ։࠵Ͱ͢ ‣

    ߴඌࢁͰJAWS−UGͱ͔ҙຯΘ͔Γ·ͤΜ ͕ʁͱ͍͏ਓʹ͸ڈ೥ͷ༷ࢠΛগ͠঺հʂ ‣ ৄࡉʹ͍ͭͯ͸BlogΛ͝ཡ͍ͩ͘͞ ࠂ஌
  10. 28 ‣ JAWS-UG தԝઢ - http://jaws-ug.jp/bc/chuoline/ ‣ JAWS-UG ژԦઢ -

    https://jawsug-keioline.doorkeeper.jp/ ‣ AWS SDK for Go - https://aws.amazon.com/jp/sdk-for-go/ Appendix
  11. 29 ‣ aws/aws-sdk-go - https://github.com/aws/aws-sdk-go ‣ Release: AWS SDK for

    Go v0.9.5 - http://aws.amazon.com/releasenotes/ 6995518966379854 ‣ uchimanajet7 - Pixelhub.me - http://pixelhub.me/pixelhub1/index.php? user=uchimanajet7 Appendix
  12. 30 ‣ uchimanajet7/rds-try - https://github.com/uchimanajet7/rds-try ‣ rds-try/README.md - https://github.com/uchimanajet7/rds-try/blob/master/ README.md

    ‣ aws-go-sdk Λ࢖ͬͯRDSΛͪΐͬͱ͚ͩૢ࡞Ͱ͖Δʮrds- tryʯͱ͍͏πʔϧΛ࡞ͬͯΈͨ - http://uchimanajet7.hatenablog.com/entry/ 2015/03/17/211139 Appendix
  13. 31 ‣ Releases · uchimanajet7/rds-try - https://github.com/uchimanajet7/rds-try/releases ‣ ʮJAWS-UGதԝઢୈ3ճษڧձ in

    ߴඌࢁ #jawsugʯ ʢ2014೥08݄02೔ʣͷ։࠵ϝϞ - http://uchimanajet7.hatenablog.com/entry/ 2014/08/04/130356 ‣ ߴඌࢁϏΞϚ΢ϯτ - http://www.takaotozan.co.jp/beermnt/ Appendix
  14. 32 ‣ Jaws-ugதԝઢ - શηογϣϯऴྃޙͷه೦ࣸਅͰ͢ɻ - https://www.facebook.com/chuoline.jawsug/posts/ 832797526730914 ‣ JAWS-UGதԝઢ&ژԦઢ߹ಉษڧձ

    in ߴඌࢁ2015 - https://jaws-ug-chuoline.doorkeeper.jp/events/30570 - https://jawsug-keioline.doorkeeper.jp/events/30653 ‣ αʔϏεɾ੡඼঺հ - ݸਓϢʔβʔ޲͚αʔϏε - https://ekiworld.net/personal/service/index.html Appendix