리셋 되지 말자

[Ansible] aws ec2 종료 본문

Infra

[Ansible] aws ec2 종료

kyeongjun-dev 2021. 8. 10. 17:42

코드

---
- name: Ansible test
  hosts: localhost
  vars:
    ansible_python_interpreter: /usr/bin/python3
  tasks:
    - name: terminate AWS instance
      ec2:
        state: 'absent'
        region: 'ap-northeast-2'
        instance_ids: 'i-09ef38a261043aaba'
Comments