Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Packer + Ansible을 이용한 AMI 생성 및 AutoScaling Group 이미지 교체 이야기

1,969 views

Published on

AWSKRUG 판교 소모임. 2018년 2월 21일(수)

Youtube 영상 : https://youtu.be/9Zd1j0z4zS0

Published in: Engineering
  • Be the first to comment

Packer + Ansible을 이용한 AMI 생성 및 AutoScaling Group 이미지 교체 이야기

  1. 1. Packer + Ansible AMI AutoScaling Group AWSKRUG (2018. 2. 21) - seapy
  2. 2. Packer • • AWS • AMI • AMI Pakcer
  3. 3. Ansible ? • chef solo • Packer • Packer shell script • script Ansible , , cron, , • Role .
  4. 4. packer 3 ansible
  5. 5. Ansible Role 

  6. 6. Ansible Role role task task
  7. 7. Packer packer 2016-01-02 ;; python3 ansible
  8. 8. $ packer build packer/web.json
  9. 9. ... • packer • • Vagrant . vagrant ubuntu aws ubuntu aws
  10. 10. • base AMI • ... . iOS
  11. 11. • API • AMI . AMI AMI • HashiCorp Vault • AWS KMS • KMS
  12. 12. • Envelope encrypt • • • KMS • S3 • KMS
  13. 13. • • AWS user-data • Rails Capistrano • Capistrano (localhost)
  14. 14. • AWS • fluentd S3 • S3 • fluentd
  15. 15. systemd
  16. 16. ... AMI
  17. 17. • • • launch configuration . • launch config • . launch config • AWS Cloud Formation
  18. 18. • AWS API • Launch Configuration • Launch Configuration • 2 • 1/2 • Gem . • . • ELB .
  19. 19. ELB ELB $ bundle exec rake replace_ami:replace_with_elb"[" ", "ami- "]" ELB $ bundle exec rake replace_ami:replace_without_elb"[" ", "ami- "]"
  20. 20. • • • packer + ansible • AMI

×