[AWS Certification] Automating AWS Services with Scripting and the AWS CLI


 - AWS 서비스를 액세스하고 관리할 수 있는 세 가지 방법으로 다루어 자동화하는 방법 익히기

 

AWS Management Console: 이 콘솔은 Amazon S3 버킷 작업, Amazon EC2 인스턴스 실행 및 Amazon CloudWatch 알람 설정과 같은 AWS 작업을 수행하기 위한 직관적인 사용자 인터페이스를 제공


AWS CLI(Command Line Interface): AWS 서비스를 관리하기 위한 통합 도구로 Commend Line에서 여러 AWS 서비스를 제어하고 스크립트를 통해 자동화 할 수 있다.


AWS SDK(Software Development Kit): AWS는 다양한 프로그래밍 언어에 대한 SDK를 제공한다. SDK를 사용하면 S3 및 EC2 위에 응용프로그램을 구축할 수 있다.


Topics covered

 - Using the AWS CLI to access and manage AWS services from the command line

 - Using the AWS SDK to programmatically access and manage AWS services

 - Configuring security for the AWS CLI


[Task 1: Connect to your Linux EC2 instance]


 - Session에 Host name: PublicIP 입력

 - Connection에 SSH 메뉴 펼치기

 - Auth 클릭 후 Borwse에서 PPK파일 open

 - username: ec2-user


[Task 2: Three Ways to Access AWS]
 - Key Pair 생성
 - 

[Task 3: Access Amazon S3 with the AWS CLI]


 * Automating Amazon S3
    (CLI 작업을 통해 할 수 있는 유용한 작업)

 - Sending backups to Cloud
(클라우드로 백업 보내기)

 - Providing shared access to documents from multiple computers
(여러 컴퓨터의 문서에 대한 공유 액세스 제공)

 - Retrieving scripts and application code from a central repository
(중앙 레포지토리에서 스크립트 및 응용 프로그램 코드 검색)

 - Duplicating data between different regions
(다른 리전간에 데이터 복제)

[Task 4: Automate EBS Snapshot]

[Task 5: Automate Bastion Security]

[Task 6: Control Amazon EC2 Instances with The Stopinator]

* Other Stopinator Ideas

 - Schedule the Stopinator to stop machines each evening, to save money
 - Mark instances that you want to keep running, then have the Stopinator stop only unknown instances (but don't terminate them - they might be important.
 - Have another script that turns on the instances in morning.
 - Set different actions for weekdays and weekends.
 - Use another tag to identify how many hours you what an instance to run, which is ideal for instances you just want to use for an experiments.
Schedule the Stopinator to run hourly and configure it to terminate instances that run longer than the indicated number of hours.

[Task 7: Custom CloudWatch Metrics]

[Task 8: Security Credentials for your Scripts]


[Task 9: Accessing Help and Documentation]




+ Recent posts