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

CodeDeployを使ったアプリケーションデプロイを考える

toshihirock
September 16, 2015

 CodeDeployを使ったアプリケーションデプロイを考える

toshihirock

September 16, 2015
Tweet

More Decks by toshihirock

Other Decks in Technology

Transcript

  1. σϓϩΠํ๏ ɾىಈ͢ΔAMIʹσϓϩΠ͓ͯ͘͠ ɾΦʔτεέʔϧ࣌ʹσϓϩΠ ɹ- UserData(shellscript || cloud-init) - AutoScaing LifeCycleHook

    - σϓϩΠπʔϧ(Fabric || Capistrano) - Chef || Puppet || Ansible ɹ- Թ΋Γͷ͋ΔΦϨΦϨεΫϦϓτ - CodeDeploy New!
  2. version: 0.0 os: linux files: - source: / destination: /var/www/html/WordPress

    hooks: ApplicationStop: - location: scripts/stop_server.sh timeout: 300 runas: root AfterInstall: - location: scripts/change_permissions.sh timeout: 300 runas: root ApplicationStart: - location: scripts/start_server.sh timeout: 300 runas: root
  3. Fabric΍Capistranoͱͷҧ͍ ɾϝϦοτ - σϓϩΠ༻αʔόʔ͕ෆཁ - Φʔτεέʔϧ࣌ͷࣗಈద༻ - GUIͰͷૢ࡞͕Ͱ͖Δ ɾσϝϦοτ -

    AgentΛEC2ʹΠϯετʔϧ͢Δඞཁ͋Γ - Internet΁ͷΞΫηε͕ඞཁ(VPCΤϯυϙ Πϯτཉ͍͠ʣ