ownCloud on AWS in Hackers Champloo 前夜祭 #hcmpl

ownCloud on AWS in Hackers Champloo 前夜祭 #hcmpl

2014,7,11に行われたハッカーズチャンプルー前夜祭のLT資料です。

3174b33cfbf39090f00a4791b3780888?s=128

Naoto Enokawa

July 12, 2014
Tweet

Transcript

  1. ownCloud on AWS Naoto Enokawa

  2. ABOUT ME ӫ໺઒ɹ௚ేʢNaoto Enokawaʣ ԭೄࠃࡍେֶ ࢈ۀ৘ใֶՊ̐೥࣍ झຯɿҰ؟Ϩϑ ಛٕɿDJ enokawa.co

  3. झຯ͸Ұ؟ϨϑͳΜ͚ͩͲɻɻɻ • όοΫΞοϓͱΒͳ͖Ό • ֎ग़ઌ͔Β΋Ӿཡ͍ͨ͠ • εϚϗͰ΋ݟ͍ͨ • Ͱ΋ηΩϡϦςΟͱ͔ා͍ •

    ࣗ෼Ͱ࡞Δͷ͸೉͍͠orz
  4. ʴ

  5. ʴ ࠇ͍ը໘Λ৮Βͣʹ ߏஙͪ͠Ό͍·͠ΐ͏ʂ

  6. – owncloud.jp “YOUR CLOUD, YOUR DATA, YOUR WAY!”

  7. ownCloud • PHPϕʔεͷΦʔϓϯιʔεϓϩμΫτ • ༰ྔແ੍ݶ • ηΩϡϦςΟʢϑΝΠϧɾ௨৴࿏ͷ҉߸Խʣ • ϚϧνσόΠεରԠʢ༗ྉεϚϗΞϓϦʣ •

    طଘετϨʔδͱͷ࿈ܞ • ଞݴޠରԠ
  8. – aws.amazon.com

  9. Amazon Web ServiceʢAWSʣ • Amazon͕ࣾఏڙ͢ΔΫϥ΢υαʔϏε • ॳظ౤ࢿ͕ෆཁ • ैྔ՝ۚ •

    εέʔϧΞοϓʗμ΢ϯ͕༰қ • ৽αʔϏεΛΑΓૣ͘ఏڙ • ੈքதͷσʔληϯλ܈Λར༻Ͱ͖Δ…etc
  10. ΞʔΩςΫνϟ ownCloud S3 ΅͘ EC2

  11. STEP1 ownCloudʢEC2ʣͷىಈ

  12. Elastic Computing Cloud(EC2) ɾԾ૝Ϛγϯ ɾ̍࣌ؒ͋ͨΓͷྉۚ ɾੑೳΛࣗ༝ʹมߋ ɾ༷ʑͳOS ɾແྉ࿮͋Γ

  13. ownCloudͷAMI

  14. None
  15. None
  16. None
  17. STEP2 S3ͷόέοτʗIAMϢʔβͷ࡞੒

  18. Simple Storage Service(S3) ɾσʔλετϨʔδ ɾอଘσʔλ͋ͨΓͷྉۚ ɾແྉ࿮͕͋Δ ɾ99.999999999ͷ଱ٱੑɺ99%ͷՄ༻ੑ ɾ༰ྔ͸ແ੍ݶ

  19. Simple Storage Service(S3) ɾετϨʔδͱͯ͠ͷ༻్Ҏ֎ʹ΋ ɾ੩తαΠτϗεςΟϯά ɾCSS,JavaScript ɾ͜ͷ৔߹͸σʔλసૹྔ΋

  20. Identify and Access Management(IAM) ɾAWSͷϦιʔε΁ͷϢʔβΞΫηε؅ཧ ɾ໾ׂʹΑͬͯඞཁͳϦιʔεͷΈʹ ΞΫηεͰ͖ΔΑ͏ʹ ɾແྉͰ࢖͑Δ

  21. S3ͷόέοτ࡞੒

  22. IAMϢʔβͷ࡞੒

  23. None
  24. None
  25. None
  26. { "Version": "2012-10-17", "Statement": [ { "Action": [ "s3:ListAllMyBuckets" ],

    "Effect": "Allow", "Resource": "arn:aws:s3:::*" }, { "Action": "s3:*", "Effect": "Allow", "Resource": ["arn:aws:s3:::enokawa-photo","arn:aws:s3:::enokawa-photo/*"] } ] }
  27. STEP3 ownCloudͰͷઃఆ

  28. None
  29. None
  30. None
  31. None
  32. None
  33. DEMO

  34. MATOME ɾAWSΛ࢖͑͹؆୯ʹΠϯϑϥΛߏஙͰ͖Δ ɾDropboxͱൺ΂Δͱૣ͍͚Ͳ·ͩετϨε͔͔Δ ɾεϚϗͷϒϥ΢βͰΞΫηε͢ΔͱUI͕…orz

  35. MATOME ɾ ɾ ɾεϚϗͷϒϥ΢βͰΞΫηε͢Δͱ

  36. FUTURE ɾCloudFront͔·͢ʢϕϯνϚʔΫͱΔʣ ɾ΋ͬͱ҆͘ ɾiPhoneΞϓϦങͬͯࢼ͢ʢ¥100ʣ ɾAmazon Zocalo ࢼͯ͠ΈΔ

  37. THANK YOU!!