Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 880 Bytes

File metadata and controls

30 lines (21 loc) · 880 Bytes

Automation

AWS Automation


ec2_cook.sh

매번 AWS Console에서 test instance를 stop <-> running을 하는것이 반복되어서 간단한 명령어로 사용할 수 있도록 script화 하였습니다.

처음 실행했을 때 first execution

EC2 instance list 조회 show ec2 instance list

  • table형식으로 Availability zone, Instance id, tag, State를 출력합니다.

EC2 stopped -> running ec2 run

  • Name tag를 이용하여 instance를 running 상태로 변경합니다.

EC2 running -> stopped ec2 stop

  • stopped 상태로 전환하기 위해서는 instance-id를 입력해 특정 instance만 정지할 수 있도록 합니다.

TO DO
필요에 의해 생각나면 추가

  • [] :