SlideShare une entreprise Scribd logo
1  sur  57
AWS 파트너와 함께하는
Partner Hands On Labs 2
2016. 10. 17
베스핀글로벌
신인철
스크립트로 AWS 서비스
자동화 하기
2016 ⓒ BESPIN GLOBAL
시간 내용 담당자
14:00-14:20 등록 및 실습 환경 설정 베스핀글로벌 SA
14:20-14:30 공지사항 및 파트너사 소개 PDM
14:30-15:00 파트너사 발표 세션 베스핀글로벌 SA
15:00-15:50 강사 주도식 실습 베스핀글로벌 SA
15:50-16:00 Coffee Break
16:00-17:50 자유 주제 선택 실습 AWS SA
17:50-18:00 종료 공지사항 김진영 매니저
일정
AWS 서비스에 접속하는 3가지 방법
Management
Interface
CLI
SDK
Web
http://aws.amazon.com/tools/
http://aws.amazon.com/cli/
http://aws.amazon.com/console/
1. AWS Management Console
• AWS Managemnet Console
• 고객사의 컴퓨팅, 스토리지, 그리고 기타 클라우드 리소
스를 관리하기 위한 사용하기 쉬운 그래픽 인터페이스
• 각 서비스를 위한 대부분의 기능을 지원하여, 콘솔 상에
서 대부분의 AWS 제품을 사용 가능
• AWS 관리 콘솔은 대부분의 컴퓨팅, 스토리지, 그리고
기타 AWS 서비스에 액세스해 관리하도록 도와주는
WEB UI
1. AWS Management Console
2. AWS CLI(Command Line
Interface)
• CLI는 개발자와 같이 명령을 입력하는 것이 더 편
한 이들을 위한 도구. AWS 제품 별 CLI와 설명서에
대한 링크들을 하기 URL의 웹 페이지에서 확인
• 명령줄 도구는 개발자가 명령 프롬프트 상에서 직
접 명령을 실행할
2016 ⓒ BESPIN GLOBAL
• AWS CLI(Command Line Interface)
• 명령줄 인터페이스 (CLI) 도구는 명령 프롬프트 상에서 AWS API와 바로 연동되는 편리한 Scripting
Interface를 제공. 일반적인 명령줄 프롬프트인 PROMPT> 접두사를 명령줄 텍스트에 붙여 표기
리눅스
$aws ec2 describe-regions
윈도우
C:>aws ec2 describe-regions
3. AWS SDK(Software
Development Kit)
• SDK는 고객사에서 선호하는 개발 언어를 사용해
AWS 서비스에 쉽게 액세스.
• 각 개발 언어 별 SDK 참조 링크 확인
https://aws.amazon.com/ko/tools/
• 각 개발 언어 별 SDK Sample Code 참조 링크 확인
https://aws.amazon.com/code/
Installation
2016 ⓒ BESPIN GLOBAL
Windows:
32-bit MSI :
http://s3.amazonaws.com/aws-cli/AWSCLI32.msi
64-bit MSI :
http://s3.amazonaws.com/aws-cli/AWSCLI64.msi
Bundled Installer :
http://aws-cli.s3.amazonaws.com/awscli-bundle.zip
Installation-Windows
Installation-Linux
$ wget http://s3.amazon.com/aws-cli/awscli-bundle.zip
$ unzip awscli-bundle.zip
$ ./install
$ ~/.local/lib/aws/bin/aws --version
Pip
$ pip install –upgrade awscli
Configuration
2016 ⓒ BESPIN GLOBAL
Credential Configuration
IAM Role Environment Config File: ~/.aws/config
Automatic
AWS_ACCESS_KEY_ID aws_access_key_id
AWS_SECRET_ACCESS_KEY Aws_secret_access_key
IAM Role 할당
Automatic
2016 ⓒ BESPIN GLOBAL
IAM Role 할당 - Automatic
• EC2 생성 시 미리 생성한 Role을 할당하면 Access
Key/Secret Key가 필요 없다.
• 나중엔 Role 적용 못한다.
Environment
Access Key와 Secret Key 생성
1
2
3
4
5
Configuration files
~/.aws/credentials
All AWS SDK
Only Contains
~/.aws/config
Use Only CLI
Can Contains
2016 ⓒ BESPIN GLOBAL
AWS access key ID [**ABCD]:
AWS secret access key [****************EFGH]:
Default region name [ap-northeast-2]:
Default output format [json]:
$ aws configure
2016 ⓒ BESPIN GLOBAL
AWS access key ID [**ABCD]:
AWS secret access key [****************EFGH]:
Default region name [ap-northeast-2]:
Default output format [json]:
$ aws configure
/list /get /set
2016 ⓒ BESPIN GLOBAL
그럼
AWS CLI 명령어를
실행해 봅니다.
!!!
2016 ⓒ BESPIN GLOBAL
$ aws help
http://docs.aws.amazon.com/cli/latest/ref
erence/ec2/describe-instances.html
2016 ⓒ BESPIN GLOBAL
help 명령어 사용
• aws service operation help
• aws service help
• aws help
2016 ⓒ BESPIN GLOBAL
{
“Reservations”: []
}
$ aws ec2 describe-instances
2016 ⓒ BESPIN GLOBAL
$ aws ec2 describe-instances
Service
(Command)
Operation
(Subcommand)
2016 ⓒ BESPIN GLOBAL
$ aws ec2 describe-instances
2016 ⓒ BESPIN GLOBAL
Programmatic processing
Integrate with JSON tools
JSON TABLE TEXT
Interactive browsing
Easier to visually parse
Piping to text tools
Easy to parse
Output Format
2016 ⓒ BESPIN GLOBAL
{
“Places”: [
{
“City”: “Seattle”,
“State”: “WA”
},
{
“City”: “Las Vegas”,
“State”: “NV”
}
]
}
JSON TABLE TEXT
--------------------------
|SomeOperationName|
+-----------------------+
|| Places
|+----------------------+|
||City | State ||
|+----------------------+|
||Seattle | WA
||Las Vegas | NV ||
|+----------------------+|
PLACES Seattle WA
PLACES Las Vegas NV
Output Format
2016 ⓒ BESPIN GLOBAL
$ aws ec2 describe-regions
2016 ⓒ BESPIN GLOBAL
$ {
"Regions": [
{
"Endpoint": "ec2.ap-south-1.amazonaws.com",
"RegionName": "ap-south-1"
},
{
"Endpoint": "ec2.eu-west-1.amazonaws.com",
"RegionName": "eu-west-1"
},
{
"Endpoint": "ec2.ap-southeast-1.amazonaws.com",
"RegionName": "ap-southeast-1"
},
{
"Endpoint": "ec2.ap-southeast-2.amazonaws.com",
"RegionName": "ap-southeast-2"
},
Output JSON
2016 ⓒ BESPIN GLOBAL
----------------------------------------------------------
| DescribeRegions |
+--------------------------------------------------------+
|| Regions ||
|+-----------------------------------+------------------+|
|| Endpoint | RegionName ||
|+-----------------------------------+------------------+|
|| ec2.ap-south-1.amazonaws.com | ap-south-1 ||
|| ec2.eu-west-1.amazonaws.com | eu-west-1 ||
|| ec2.ap-southeast-1.amazonaws.com | ap-southeast-1 ||
|| ec2.ap-southeast-2.amazonaws.com | ap-southeast-2 ||
|| ec2.eu-central-1.amazonaws.com | eu-central-1 ||
|| ec2.ap-northeast-2.amazonaws.com | ap-northeast-2 ||
|| ec2.ap-northeast-1.amazonaws.com | ap-northeast-1 ||
|| ec2.us-east-1.amazonaws.com | us-east-1 ||
|| ec2.sa-east-1.amazonaws.com | sa-east-1 ||
|| ec2.us-west-1.amazonaws.com | us-west-1 ||
|| ec2.us-west-2.amazonaws.com | us-west-2 ||
|+-----------------------------------+------------------+|
Output Table
2016 ⓒ BESPIN GLOBAL
REGIONS ec2.ap-south-1.amazonaws.com ap-south-1
REGIONS ec2.eu-west-1.amazonaws.com eu-west-1
REGIONS ec2.ap-southeast-1.amazonaws.com ap-southeast-1
REGIONS ec2.ap-southeast-2.amazonaws.com ap-southeast-2
REGIONS ec2.eu-central-1.amazonaws.com eu-central-1
REGIONS ec2.ap-northeast-2.amazonaws.com ap-northeast-2
REGIONS ec2.ap-northeast-1.amazonaws.com ap-northeast-1
REGIONS ec2.us-east-1.amazonaws.com us-east-1
REGIONS ec2.sa-east-1.amazonaws.com sa-east-1
REGIONS ec2.us-west-1.amazonaws.com us-west-1
REGIONS ec2.us-west-2.amazonaws.com us-west-2
Output Text
2016 ⓒ BESPIN GLOBAL
$ aws ec2 describe-instances
2016 ⓒ BESPIN GLOBAL
{
"Reservations": [
{
"OwnerId": "321653183891",
"ReservationId": "r-58bf2a87",
"Groups": [],
"Instances": [
{
"Monitoring": {
"State": "disabled"
},
"PublicDnsName": "ec2-52-65-186-23.ap-southeast-
2.compute.amazonaws.com",
"State": {
"Code": 16,
"Name": "running"
},
Output JSON
2016 ⓒ BESPIN GLOBAL
-----------------------------------------------------------------------------------------
| DescribeInstances |
+---------------------------------------------------------------------------------------+
|| Reservations ||
|+-------------------------------------------+-----------------------------------------+|
|| OwnerId | 321653183891 ||
|| ReservationId | r-58bf2a87 ||
|+-------------------------------------------+-----------------------------------------+|
||| Instances |||
||+------------------------+----------------------------------------------------------+||
||| AmiLaunchIndex | 0 |||
||| Architecture | x86_64 |||
||| ClientToken | gBjjZ1473066131341 |||
||| EbsOptimized | False |||
||| Hypervisor | xen |||
||| ImageId | ami-dc361ebf |||
||| InstanceId | i-fad124e1 |||
||| InstanceType | t2.micro |||
||| KeyName | bespin-Syney-Inchulshin |||
||| LaunchTime | 2016-09-07T07:29:43.000Z |||
||| PrivateDnsName | ip-172-31-11-196.ap-southeast-2.compute.internal |||
||| PrivateIpAddress | 172.31.11.196 |||
Output Table
2016 ⓒ BESPIN GLOBAL
RESERVATIONS 321653183891 r-58bf2a87
INSTANCES 0 x86_64 gBjjZ1473066131341 False xen ami-dc361ebf i-
fad124e1 t2.micro bespin-Syney-Inchulshin 2016-09-07T07:29:43.000Z ip-172-31-11-
196.ap-southeast-2.compute.internal 172.31.11.196 ec2-52-65-186-23.ap-southeast-
2.compute.amazonaws.com 52.65.186.23/dev/xvda ebs True subnet-
4a0b492f hvm vpc-e2fb6087
BLOCKDEVICEMAPPINGS /dev/xvda
EBS 2016-09-05T09:02:12.000Z True attached vol-47e084c8
IAMINSTANCEPROFILE arn:aws:iam::321653183891:instance-profile/InchulShin
AIPAJV7QAA3BLN54LK536
MONITORING disabled
NETWORKINTERFACES Primary network interface 02:2f:9b:e1:4b:bb eni-
d2dc8cab 321653183891 ip-172-31-11-196.ap-southeast-2.compute.internal
172.31.11.196 True in-use subnet-4a0b492f vpc-e2fb6087
Output Text
2016 ⓒ BESPIN GLOBAL
Query
Data Query Result
{"foo": "bar"}
{"foo": {"bar": "baz"}}
{"foo": [0, 1]}
{"bar": 1, "baz": 2}
{"a": 1, "b": 2, "c": 3}
{"a": 1, "b": 2, "c": 3}
[{"a": 1}, {"a": 2},
{"a": 3}, {"a": 4}]
foo
foo.bar
foo[1]
foo or bar
[a, b]
{a: a, other: b}
[*].a
"bar"
baz
1
1
[1, 2]
{"a": 1, "other": 2}
[1, 2, 3, 4]
2016 ⓒ BESPIN GLOBAL
$ aws ec2 describe-instances
--query Reservations[*].Instances[*]
.[InstanceId,State.Name]
[
[
[
"i-fad124e1",
"running"
]
],
[
[
"i-b7a7da18",
"running"
]
],
[
[
"i-ef34766d",
"terminated"
]
]
]
------------------------------
| DescribeInstances |
+-------------+--------------+
| i-fad124e1 | running |
| i-b7a7da18 | running |
| i-ef34766d | terminated |
+-------------+--------------+
i-fad124e1 running
i-b7a7da18 running
i-ef34766d terminated
JSON TABLE TEXT
2016 ⓒ BESPIN GLOBAL
aws ec2 describe-instances --query
'Reservations[*].Instances[*].{ID:Instanc
eId, State:State.Name}'
[
[
{
"State": "running",
"ID": "i-fad124e1"
}
],
[
{
"State": "running",
"ID": "i-b7a7da18"
}
],
[
{
"State": "terminated",
"ID": "i-ef34766d"
}
]
]
------------------------------
| DescribeInstances |
+-------------+--------------+
| ID | State |
+-------------+--------------+
| i-fad124e1 | running |
| i-b7a7da18 | running |
| i-ef34766d | terminated |
+-------------+--------------+
i-fad124e1 running
i-b7a7da18 running
i-ef34766d terminated
JSON TABLE TEXT
2016 ⓒ BESPIN GLOBAL
Demo
2016 ⓒ BESPIN GLOBAL
One Liner Script
2016 ⓒ BESPIN GLOBAL
AWS CLI One Liner
첫번째 시나리오
- 나는 AWS 관리자이다. AWS CLI 를 활용하여 IAM
관련된 정보를 알아보고자 한다.
- 다음과 같이 AWS CLI 명령어는 알고 있다. 그러나
IAM User가 많아서 한번 실행으로 작업하고 싶다.
$ aws iam list-users –query Users[].[UserName]
$ aws iam delete-user –user-name <username>
$ aws iam list-access-keys --user-name <username>
2016 ⓒ BESPIN GLOBAL
AWS CLI One Liner – 반복 순환 (2)
$ for name in (aws iam list-users 
--query “Users[].[UserName]” --output text); 
do 
aws iam list-access-keys --user-name “$name” 
--query
AccessKeyMetadata[*].[UserName,AccessKeyId] 
--output text 
; done
2016 ⓒ BESPIN GLOBAL
AWS CLI One Liner – 반복 순환 (3)
$ for name in (aws iam list-users 
--query Users[].[UserName] --output text); 
do 
aws iam list-access-keys --user-name $name 
--output text | awk ‘{print “ID : “,$5”,” 
“ACCESS :”,$2}’ 
; done
2016 ⓒ BESPIN GLOBAL
AWS CLI One Liner
두번쨰 시나리오
- 나는 AWS 관리자이다. AWS CLI 를 활용하여 IAM
관련된 정보를 알아보고자 한다.
- 다음과 같이 AWS CLI 명령어는 알고 있다. 그러나
IAM User가 많아서 한번 실행으로 작업하고 싶다.
- 반복 순환문(
$ aws iam list-users –query Users[].[UserName] --
output text
2016 ⓒ BESPIN GLOBAL
AWS CLI One Liner - xargs
$ aws iam list-users --query 
Users[].[UserName] --output text 
| xargs –I {} –P 10 
aws iam list-access-keys --user-name “{}” 
--output text
2016 ⓒ BESPIN GLOBAL
•For Or While 반복 순환문을 사용하면 좋다.
•Xargs를 사용한다면, -I {} 같이 사용
•xargs -P N 은 병렬 실행하여 사용
•“[UserName]” 은 “.UserName” 에서 output을
각각 새로운 Line을 얻는다
AWS CLI One Liner
2016 ⓒ BESPIN GLOBAL
$ aws ec2 describe-instances --query
'Reservations[*].Instances[*].[State.Name,
InstanceId]' --output text |
> grep stopped |
> awk '{print $2}' |
> while read line;
> do aws ec2 modify-instance-attribute -
-instance-id $line --instance-type
'{"Value": "m1.medium"}';
> done
Example - AWS CLI One Liner
2016 ⓒ BESPIN GLOBAL
N Liner Script
2016 ⓒ BESPIN GLOBAL
#!/bin/bash
#Create a new user and create a new profile.
aws iam create-‐user -‐-‐user-‐name reinvent-‐user
credentials=$(aws iam create-‐access-‐key -‐-‐user-‐name reinvent-‐user 
-‐query 'AccessKey.[AccessKeyId,SecretAccessKey]‘ 
-‐output text)
access_key_id=$(echo $credentials | cut ‐d‘ ‘ ‐f 1)
secret_access_key=$(echo $credentials | cut ‐d‘ ‘ ‐f 2)
aws configure set profile.reinvent.aws_access_key_id "$access_key_id"
aws configure set profile.reinvent.secret_access_key "$secret_access_key"
Example 1 - create-new-user.sh
Waiters - EC2 상태 값
#!/bin/bash
instance_id=$(aws ec2 run-instances --image-id ami-12345 
--query Reservations[].Instances[].InstanceId 
--output text)
instance_state=$(aws ec2 describe-instances --instance-ids $instance_id 
--query 'Reservations[].Instances[].State.Name')
while [ "$instance_state“ != "running“ ]
do
sleep 1
instance_state=$(aws ec2 describe-instances --instance-‐ids $instance_id 
--query 'Reservations[].Instances[].State.Name')
done
Example 2 - ec2-instance-running.sh
2016 ⓒ BESPIN GLOBAL
WE ARE HIRING!!!
• KOREA
• CHINA
• JAPAN
• USA
PLEASE JOIN US
Thank you

Contenu connexe

Tendances

AWS Summit Seoul 2015 - EBS 성능 향상 및 EC2 비용 최적화 기법
AWS Summit Seoul 2015 - EBS 성능 향상 및 EC2 비용 최적화 기법AWS Summit Seoul 2015 - EBS 성능 향상 및 EC2 비용 최적화 기법
AWS Summit Seoul 2015 - EBS 성능 향상 및 EC2 비용 최적화 기법Amazon Web Services Korea
 
클라우드 기반 데이터 분석 및 인공 지능을 위한 비지니스 혁신 - 윤석찬 (AWS 테크에반젤리스트)
클라우드 기반 데이터 분석 및 인공 지능을 위한 비지니스 혁신 - 윤석찬 (AWS 테크에반젤리스트)클라우드 기반 데이터 분석 및 인공 지능을 위한 비지니스 혁신 - 윤석찬 (AWS 테크에반젤리스트)
클라우드 기반 데이터 분석 및 인공 지능을 위한 비지니스 혁신 - 윤석찬 (AWS 테크에반젤리스트)Amazon Web Services Korea
 
20200422 AWS Black Belt Online Seminar Amazon Elastic Container Service (Amaz...
20200422 AWS Black Belt Online Seminar Amazon Elastic Container Service (Amaz...20200422 AWS Black Belt Online Seminar Amazon Elastic Container Service (Amaz...
20200422 AWS Black Belt Online Seminar Amazon Elastic Container Service (Amaz...Amazon Web Services Japan
 
Athena & Step Function 으로 통계 파이프라인 구축하기 - 변규현 (당근마켓) :: AWS Community Day Onl...
Athena & Step Function 으로 통계 파이프라인 구축하기 - 변규현 (당근마켓) :: AWS Community Day Onl...Athena & Step Function 으로 통계 파이프라인 구축하기 - 변규현 (당근마켓) :: AWS Community Day Onl...
Athena & Step Function 으로 통계 파이프라인 구축하기 - 변규현 (당근마켓) :: AWS Community Day Onl...AWSKRUG - AWS한국사용자모임
 
AWS Webcast - Build Agile Applications in AWS Cloud
AWS Webcast - Build Agile Applications in AWS CloudAWS Webcast - Build Agile Applications in AWS Cloud
AWS Webcast - Build Agile Applications in AWS CloudAmazon Web Services
 
Best practices to use aws in countryside.
Best practices to use aws in countryside.Best practices to use aws in countryside.
Best practices to use aws in countryside.Takuya Tachibana
 
20180322 AWS Black Belt Online Seminar AWS Snowball Edge
20180322 AWS Black Belt Online Seminar AWS Snowball Edge20180322 AWS Black Belt Online Seminar AWS Snowball Edge
20180322 AWS Black Belt Online Seminar AWS Snowball EdgeAmazon Web Services Japan
 
AWS 마이그레이션 서비스 - 김일호 :: 2015 리인벤트 리캡 게이밍
AWS 마이그레이션 서비스 - 김일호 :: 2015 리인벤트 리캡 게이밍AWS 마이그레이션 서비스 - 김일호 :: 2015 리인벤트 리캡 게이밍
AWS 마이그레이션 서비스 - 김일호 :: 2015 리인벤트 리캡 게이밍Amazon Web Services Korea
 
IVS CTO Night And Day 2018 Winter - [re:Cap] Containers & Microservices
IVS CTO Night And Day 2018 Winter - [re:Cap] Containers & MicroservicesIVS CTO Night And Day 2018 Winter - [re:Cap] Containers & Microservices
IVS CTO Night And Day 2018 Winter - [re:Cap] Containers & MicroservicesAmazon Web Services Japan
 
Path to the future #4 - Ingestão, processamento e análise de dados em tempo real
Path to the future #4 - Ingestão, processamento e análise de dados em tempo realPath to the future #4 - Ingestão, processamento e análise de dados em tempo real
Path to the future #4 - Ingestão, processamento e análise de dados em tempo realAmazon Web Services LATAM
 
CloudFront로 동적 컨텐츠를 전송하는 네가지 이유 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
CloudFront로 동적 컨텐츠를 전송하는 네가지 이유 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 GamingCloudFront로 동적 컨텐츠를 전송하는 네가지 이유 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
CloudFront로 동적 컨텐츠를 전송하는 네가지 이유 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 GamingAmazon Web Services Korea
 
AWS CloudFormation Best Practices
AWS CloudFormation Best PracticesAWS CloudFormation Best Practices
AWS CloudFormation Best PracticesAmazon Web Services
 
2017 AWS DB Day | Amazon DynamoDB 서비스, 개요 및 신규 기능 소개
2017 AWS DB Day | Amazon DynamoDB 서비스, 개요 및 신규 기능 소개2017 AWS DB Day | Amazon DynamoDB 서비스, 개요 및 신규 기능 소개
2017 AWS DB Day | Amazon DynamoDB 서비스, 개요 및 신규 기능 소개Amazon Web Services Korea
 
Introdução ao data warehouse Amazon Redshift
Introdução ao data warehouse Amazon RedshiftIntrodução ao data warehouse Amazon Redshift
Introdução ao data warehouse Amazon RedshiftAmazon Web Services LATAM
 
IaC로 AWS인프라 관리하기 - 이진성 (AUSG) :: AWS Community Day Online 2021
IaC로 AWS인프라 관리하기 - 이진성 (AUSG) :: AWS Community Day Online 2021IaC로 AWS인프라 관리하기 - 이진성 (AUSG) :: AWS Community Day Online 2021
IaC로 AWS인프라 관리하기 - 이진성 (AUSG) :: AWS Community Day Online 2021AWSKRUG - AWS한국사용자모임
 
AWS Summit London 2014 | Customer Stories | Just Eat
AWS Summit London 2014 | Customer Stories | Just EatAWS Summit London 2014 | Customer Stories | Just Eat
AWS Summit London 2014 | Customer Stories | Just EatAmazon Web Services
 

Tendances (20)

AWS Summit Seoul 2015 - EBS 성능 향상 및 EC2 비용 최적화 기법
AWS Summit Seoul 2015 - EBS 성능 향상 및 EC2 비용 최적화 기법AWS Summit Seoul 2015 - EBS 성능 향상 및 EC2 비용 최적화 기법
AWS Summit Seoul 2015 - EBS 성능 향상 및 EC2 비용 최적화 기법
 
클라우드 기반 데이터 분석 및 인공 지능을 위한 비지니스 혁신 - 윤석찬 (AWS 테크에반젤리스트)
클라우드 기반 데이터 분석 및 인공 지능을 위한 비지니스 혁신 - 윤석찬 (AWS 테크에반젤리스트)클라우드 기반 데이터 분석 및 인공 지능을 위한 비지니스 혁신 - 윤석찬 (AWS 테크에반젤리스트)
클라우드 기반 데이터 분석 및 인공 지능을 위한 비지니스 혁신 - 윤석찬 (AWS 테크에반젤리스트)
 
20200422 AWS Black Belt Online Seminar Amazon Elastic Container Service (Amaz...
20200422 AWS Black Belt Online Seminar Amazon Elastic Container Service (Amaz...20200422 AWS Black Belt Online Seminar Amazon Elastic Container Service (Amaz...
20200422 AWS Black Belt Online Seminar Amazon Elastic Container Service (Amaz...
 
Athena & Step Function 으로 통계 파이프라인 구축하기 - 변규현 (당근마켓) :: AWS Community Day Onl...
Athena & Step Function 으로 통계 파이프라인 구축하기 - 변규현 (당근마켓) :: AWS Community Day Onl...Athena & Step Function 으로 통계 파이프라인 구축하기 - 변규현 (당근마켓) :: AWS Community Day Onl...
Athena & Step Function 으로 통계 파이프라인 구축하기 - 변규현 (당근마켓) :: AWS Community Day Onl...
 
AWS Webcast - Build Agile Applications in AWS Cloud
AWS Webcast - Build Agile Applications in AWS CloudAWS Webcast - Build Agile Applications in AWS Cloud
AWS Webcast - Build Agile Applications in AWS Cloud
 
Introduction to AWS X-Ray
Introduction to AWS X-RayIntroduction to AWS X-Ray
Introduction to AWS X-Ray
 
Best practices to use aws in countryside.
Best practices to use aws in countryside.Best practices to use aws in countryside.
Best practices to use aws in countryside.
 
20180322 AWS Black Belt Online Seminar AWS Snowball Edge
20180322 AWS Black Belt Online Seminar AWS Snowball Edge20180322 AWS Black Belt Online Seminar AWS Snowball Edge
20180322 AWS Black Belt Online Seminar AWS Snowball Edge
 
AWS 마이그레이션 서비스 - 김일호 :: 2015 리인벤트 리캡 게이밍
AWS 마이그레이션 서비스 - 김일호 :: 2015 리인벤트 리캡 게이밍AWS 마이그레이션 서비스 - 김일호 :: 2015 리인벤트 리캡 게이밍
AWS 마이그레이션 서비스 - 김일호 :: 2015 리인벤트 리캡 게이밍
 
IVS CTO Night And Day 2018 Winter - [re:Cap] Containers & Microservices
IVS CTO Night And Day 2018 Winter - [re:Cap] Containers & MicroservicesIVS CTO Night And Day 2018 Winter - [re:Cap] Containers & Microservices
IVS CTO Night And Day 2018 Winter - [re:Cap] Containers & Microservices
 
Path to the future #4 - Ingestão, processamento e análise de dados em tempo real
Path to the future #4 - Ingestão, processamento e análise de dados em tempo realPath to the future #4 - Ingestão, processamento e análise de dados em tempo real
Path to the future #4 - Ingestão, processamento e análise de dados em tempo real
 
Amazon ECS
Amazon ECSAmazon ECS
Amazon ECS
 
Introduction to AWS Batch
Introduction to AWS BatchIntroduction to AWS Batch
Introduction to AWS Batch
 
CloudFront로 동적 컨텐츠를 전송하는 네가지 이유 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
CloudFront로 동적 컨텐츠를 전송하는 네가지 이유 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 GamingCloudFront로 동적 컨텐츠를 전송하는 네가지 이유 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
CloudFront로 동적 컨텐츠를 전송하는 네가지 이유 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
 
AWS CloudFormation Best Practices
AWS CloudFormation Best PracticesAWS CloudFormation Best Practices
AWS CloudFormation Best Practices
 
2017 AWS DB Day | Amazon DynamoDB 서비스, 개요 및 신규 기능 소개
2017 AWS DB Day | Amazon DynamoDB 서비스, 개요 및 신규 기능 소개2017 AWS DB Day | Amazon DynamoDB 서비스, 개요 및 신규 기능 소개
2017 AWS DB Day | Amazon DynamoDB 서비스, 개요 및 신규 기능 소개
 
Introdução ao data warehouse Amazon Redshift
Introdução ao data warehouse Amazon RedshiftIntrodução ao data warehouse Amazon Redshift
Introdução ao data warehouse Amazon Redshift
 
IaC로 AWS인프라 관리하기 - 이진성 (AUSG) :: AWS Community Day Online 2021
IaC로 AWS인프라 관리하기 - 이진성 (AUSG) :: AWS Community Day Online 2021IaC로 AWS인프라 관리하기 - 이진성 (AUSG) :: AWS Community Day Online 2021
IaC로 AWS인프라 관리하기 - 이진성 (AUSG) :: AWS Community Day Online 2021
 
AWS Summit London 2014 | Customer Stories | Just Eat
AWS Summit London 2014 | Customer Stories | Just EatAWS Summit London 2014 | Customer Stories | Just Eat
AWS Summit London 2014 | Customer Stories | Just Eat
 
Introduction on Amazon EC2
 Introduction on Amazon EC2 Introduction on Amazon EC2
Introduction on Amazon EC2
 

En vedette

클라우드 이야기1 2 20160823-신인철_slideshare
클라우드 이야기1 2 20160823-신인철_slideshare클라우드 이야기1 2 20160823-신인철_slideshare
클라우드 이야기1 2 20160823-신인철_slideshareIn Chul Shin
 
Amazon EC2 제대로 사용하기(김상필) - AWS 웨비나 시리즈 2015
Amazon EC2 제대로 사용하기(김상필) - AWS 웨비나 시리즈 2015Amazon EC2 제대로 사용하기(김상필) - AWS 웨비나 시리즈 2015
Amazon EC2 제대로 사용하기(김상필) - AWS 웨비나 시리즈 2015Amazon Web Services Korea
 
클라우드 이야기2 2 20160824-신인철_slideshare
클라우드 이야기2 2 20160824-신인철_slideshare클라우드 이야기2 2 20160824-신인철_slideshare
클라우드 이야기2 2 20160824-신인철_slideshareIn Chul Shin
 
Aws iam의 이해 slideshare 20160930
Aws iam의 이해 slideshare 20160930Aws iam의 이해 slideshare 20160930
Aws iam의 이해 slideshare 20160930In Chul Shin
 
클라우드 이행전략과 HP의 사례
클라우드 이행전략과 HP의 사례클라우드 이행전략과 HP의 사례
클라우드 이행전략과 HP의 사례Seong-Bok Lee
 
AWS 클라우드 이해하기-사례 중심으로 - 정민정 매니저:: AWS Cloud Track 1 Intro
AWS 클라우드 이해하기-사례 중심으로 - 정민정 매니저:: AWS Cloud Track 1 IntroAWS 클라우드 이해하기-사례 중심으로 - 정민정 매니저:: AWS Cloud Track 1 Intro
AWS 클라우드 이해하기-사례 중심으로 - 정민정 매니저:: AWS Cloud Track 1 IntroAmazon Web Services Korea
 
AWS Foundational and Platform Services - Module 1 Parts 2 & 3 - AWSome Day 2017
AWS Foundational and Platform Services - Module 1 Parts 2 & 3 - AWSome Day 2017AWS Foundational and Platform Services - Module 1 Parts 2 & 3 - AWSome Day 2017
AWS Foundational and Platform Services - Module 1 Parts 2 & 3 - AWSome Day 2017Amazon Web Services
 
AWS CLOUD 2017 - EC2 X1 인스턴스 기반 SAP HANA 서비스 운영 업무 최적화 (이진욱 테크니컬 트레이너)
AWS CLOUD 2017 - EC2 X1 인스턴스 기반 SAP HANA 서비스 운영 업무 최적화 (이진욱 테크니컬 트레이너)AWS CLOUD 2017 - EC2 X1 인스턴스 기반 SAP HANA 서비스 운영 업무 최적화 (이진욱 테크니컬 트레이너)
AWS CLOUD 2017 - EC2 X1 인스턴스 기반 SAP HANA 서비스 운영 업무 최적화 (이진욱 테크니컬 트레이너)Amazon Web Services Korea
 
AWS CLOUD 2017 - Amazon Redshift 기반 DW 와 비지니스 인텔리전스 구현 방법 (김일호 솔루션즈 아키텍트)
AWS CLOUD 2017 - Amazon Redshift 기반 DW 와 비지니스 인텔리전스 구현 방법 (김일호 솔루션즈 아키텍트)AWS CLOUD 2017 - Amazon Redshift 기반 DW 와 비지니스 인텔리전스 구현 방법 (김일호 솔루션즈 아키텍트)
AWS CLOUD 2017 - Amazon Redshift 기반 DW 와 비지니스 인텔리전스 구현 방법 (김일호 솔루션즈 아키텍트)Amazon Web Services Korea
 
CLOUD WIKI : 여러분이 궁금해 하는 클라우드의 모든 것!
CLOUD WIKI : 여러분이 궁금해 하는 클라우드의 모든 것!CLOUD WIKI : 여러분이 궁금해 하는 클라우드의 모든 것!
CLOUD WIKI : 여러분이 궁금해 하는 클라우드의 모든 것!Fanny Lee
 
AWS CLOUD 2017 - AWS 기반 하이브리드 클라우드 환경 구성 전략 (김용우 솔루션즈 아키텍트)
AWS CLOUD 2017 - AWS 기반 하이브리드 클라우드 환경 구성 전략 (김용우 솔루션즈 아키텍트)AWS CLOUD 2017 - AWS 기반 하이브리드 클라우드 환경 구성 전략 (김용우 솔루션즈 아키텍트)
AWS CLOUD 2017 - AWS 기반 하이브리드 클라우드 환경 구성 전략 (김용우 솔루션즈 아키텍트)Amazon Web Services Korea
 
AWS CLOUD 2017 - Amazon Aurora를 통한 고성능 데이터베이스 운용하기 (박선용 솔루션즈 아키텍트)
AWS CLOUD 2017 - Amazon Aurora를 통한 고성능 데이터베이스 운용하기 (박선용 솔루션즈 아키텍트)AWS CLOUD 2017 - Amazon Aurora를 통한 고성능 데이터베이스 운용하기 (박선용 솔루션즈 아키텍트)
AWS CLOUD 2017 - Amazon Aurora를 통한 고성능 데이터베이스 운용하기 (박선용 솔루션즈 아키텍트)Amazon Web Services Korea
 
AWS CLOUD 2017 - Enterprise is Cloud Ready. 클라우드 뉴노멀 시대에 글로벌 혁신 기업들의 클라우드 전략 ...
AWS CLOUD 2017 - Enterprise is Cloud Ready. 클라우드 뉴노멀 시대에 글로벌 혁신 기업들의 클라우드 전략 ...AWS CLOUD 2017 - Enterprise is Cloud Ready. 클라우드 뉴노멀 시대에 글로벌 혁신 기업들의 클라우드 전략 ...
AWS CLOUD 2017 - Enterprise is Cloud Ready. 클라우드 뉴노멀 시대에 글로벌 혁신 기업들의 클라우드 전략 ...Amazon Web Services Korea
 
AWS CLOUD 2017 - 서울 리전 개설 1년, 고객 관점 모범 아키텍처 설계 전략 (양승도 솔루션즈 아키텍트)
AWS CLOUD 2017 - 서울 리전 개설 1년, 고객 관점 모범 아키텍처 설계 전략 (양승도 솔루션즈 아키텍트)AWS CLOUD 2017 - 서울 리전 개설 1년, 고객 관점 모범 아키텍처 설계 전략 (양승도 솔루션즈 아키텍트)
AWS CLOUD 2017 - 서울 리전 개설 1년, 고객 관점 모범 아키텍처 설계 전략 (양승도 솔루션즈 아키텍트)Amazon Web Services Korea
 
AWS CLOUD 2017 - AWS 코어팀과 함께하는 고객 성공 전략 (황인철 상무 & 박성훈 테크니컬 어카운트 매니저 & 김소희 컨설턴트)
AWS CLOUD 2017 - AWS 코어팀과 함께하는 고객 성공 전략 (황인철 상무 & 박성훈 테크니컬 어카운트 매니저 & 김소희 컨설턴트)AWS CLOUD 2017 - AWS 코어팀과 함께하는 고객 성공 전략 (황인철 상무 & 박성훈 테크니컬 어카운트 매니저 & 김소희 컨설턴트)
AWS CLOUD 2017 - AWS 코어팀과 함께하는 고객 성공 전략 (황인철 상무 & 박성훈 테크니컬 어카운트 매니저 & 김소희 컨설턴트)Amazon Web Services Korea
 

En vedette (20)

클라우드 이야기1 2 20160823-신인철_slideshare
클라우드 이야기1 2 20160823-신인철_slideshare클라우드 이야기1 2 20160823-신인철_slideshare
클라우드 이야기1 2 20160823-신인철_slideshare
 
Amazon EC2 제대로 사용하기(김상필) - AWS 웨비나 시리즈 2015
Amazon EC2 제대로 사용하기(김상필) - AWS 웨비나 시리즈 2015Amazon EC2 제대로 사용하기(김상필) - AWS 웨비나 시리즈 2015
Amazon EC2 제대로 사용하기(김상필) - AWS 웨비나 시리즈 2015
 
클라우드 이야기2 2 20160824-신인철_slideshare
클라우드 이야기2 2 20160824-신인철_slideshare클라우드 이야기2 2 20160824-신인철_slideshare
클라우드 이야기2 2 20160824-신인철_slideshare
 
Aws iam의 이해 slideshare 20160930
Aws iam의 이해 slideshare 20160930Aws iam의 이해 slideshare 20160930
Aws iam의 이해 slideshare 20160930
 
Cloud Computing
Cloud ComputingCloud Computing
Cloud Computing
 
AWSome Day Helsinki Intro
AWSome Day Helsinki IntroAWSome Day Helsinki Intro
AWSome Day Helsinki Intro
 
클라우드 이행전략과 HP의 사례
클라우드 이행전략과 HP의 사례클라우드 이행전략과 HP의 사례
클라우드 이행전략과 HP의 사례
 
Introduction to AWS
Introduction to AWS Introduction to AWS
Introduction to AWS
 
AWS 클라우드 이해하기-사례 중심으로 - 정민정 매니저:: AWS Cloud Track 1 Intro
AWS 클라우드 이해하기-사례 중심으로 - 정민정 매니저:: AWS Cloud Track 1 IntroAWS 클라우드 이해하기-사례 중심으로 - 정민정 매니저:: AWS Cloud Track 1 Intro
AWS 클라우드 이해하기-사례 중심으로 - 정민정 매니저:: AWS Cloud Track 1 Intro
 
AWS Foundational and Platform Services - Module 1 Parts 2 & 3 - AWSome Day 2017
AWS Foundational and Platform Services - Module 1 Parts 2 & 3 - AWSome Day 2017AWS Foundational and Platform Services - Module 1 Parts 2 & 3 - AWSome Day 2017
AWS Foundational and Platform Services - Module 1 Parts 2 & 3 - AWSome Day 2017
 
AWS CLOUD 2017 - EC2 X1 인스턴스 기반 SAP HANA 서비스 운영 업무 최적화 (이진욱 테크니컬 트레이너)
AWS CLOUD 2017 - EC2 X1 인스턴스 기반 SAP HANA 서비스 운영 업무 최적화 (이진욱 테크니컬 트레이너)AWS CLOUD 2017 - EC2 X1 인스턴스 기반 SAP HANA 서비스 운영 업무 최적화 (이진욱 테크니컬 트레이너)
AWS CLOUD 2017 - EC2 X1 인스턴스 기반 SAP HANA 서비스 운영 업무 최적화 (이진욱 테크니컬 트레이너)
 
AWS CLOUD 2017 - Amazon Redshift 기반 DW 와 비지니스 인텔리전스 구현 방법 (김일호 솔루션즈 아키텍트)
AWS CLOUD 2017 - Amazon Redshift 기반 DW 와 비지니스 인텔리전스 구현 방법 (김일호 솔루션즈 아키텍트)AWS CLOUD 2017 - Amazon Redshift 기반 DW 와 비지니스 인텔리전스 구현 방법 (김일호 솔루션즈 아키텍트)
AWS CLOUD 2017 - Amazon Redshift 기반 DW 와 비지니스 인텔리전스 구현 방법 (김일호 솔루션즈 아키텍트)
 
CLOUD WIKI : 여러분이 궁금해 하는 클라우드의 모든 것!
CLOUD WIKI : 여러분이 궁금해 하는 클라우드의 모든 것!CLOUD WIKI : 여러분이 궁금해 하는 클라우드의 모든 것!
CLOUD WIKI : 여러분이 궁금해 하는 클라우드의 모든 것!
 
AWS CLOUD 2017 - AWS 기반 하이브리드 클라우드 환경 구성 전략 (김용우 솔루션즈 아키텍트)
AWS CLOUD 2017 - AWS 기반 하이브리드 클라우드 환경 구성 전략 (김용우 솔루션즈 아키텍트)AWS CLOUD 2017 - AWS 기반 하이브리드 클라우드 환경 구성 전략 (김용우 솔루션즈 아키텍트)
AWS CLOUD 2017 - AWS 기반 하이브리드 클라우드 환경 구성 전략 (김용우 솔루션즈 아키텍트)
 
AWS CLOUD 2017 - Amazon Aurora를 통한 고성능 데이터베이스 운용하기 (박선용 솔루션즈 아키텍트)
AWS CLOUD 2017 - Amazon Aurora를 통한 고성능 데이터베이스 운용하기 (박선용 솔루션즈 아키텍트)AWS CLOUD 2017 - Amazon Aurora를 통한 고성능 데이터베이스 운용하기 (박선용 솔루션즈 아키텍트)
AWS CLOUD 2017 - Amazon Aurora를 통한 고성능 데이터베이스 운용하기 (박선용 솔루션즈 아키텍트)
 
Introduction to Amazon EC2
Introduction to Amazon EC2Introduction to Amazon EC2
Introduction to Amazon EC2
 
AWS CLOUD 2017 - Enterprise is Cloud Ready. 클라우드 뉴노멀 시대에 글로벌 혁신 기업들의 클라우드 전략 ...
AWS CLOUD 2017 - Enterprise is Cloud Ready. 클라우드 뉴노멀 시대에 글로벌 혁신 기업들의 클라우드 전략 ...AWS CLOUD 2017 - Enterprise is Cloud Ready. 클라우드 뉴노멀 시대에 글로벌 혁신 기업들의 클라우드 전략 ...
AWS CLOUD 2017 - Enterprise is Cloud Ready. 클라우드 뉴노멀 시대에 글로벌 혁신 기업들의 클라우드 전략 ...
 
Amazon EC2 Masterclass
Amazon EC2 MasterclassAmazon EC2 Masterclass
Amazon EC2 Masterclass
 
AWS CLOUD 2017 - 서울 리전 개설 1년, 고객 관점 모범 아키텍처 설계 전략 (양승도 솔루션즈 아키텍트)
AWS CLOUD 2017 - 서울 리전 개설 1년, 고객 관점 모범 아키텍처 설계 전략 (양승도 솔루션즈 아키텍트)AWS CLOUD 2017 - 서울 리전 개설 1년, 고객 관점 모범 아키텍처 설계 전략 (양승도 솔루션즈 아키텍트)
AWS CLOUD 2017 - 서울 리전 개설 1년, 고객 관점 모범 아키텍처 설계 전략 (양승도 솔루션즈 아키텍트)
 
AWS CLOUD 2017 - AWS 코어팀과 함께하는 고객 성공 전략 (황인철 상무 & 박성훈 테크니컬 어카운트 매니저 & 김소희 컨설턴트)
AWS CLOUD 2017 - AWS 코어팀과 함께하는 고객 성공 전략 (황인철 상무 & 박성훈 테크니컬 어카운트 매니저 & 김소희 컨설턴트)AWS CLOUD 2017 - AWS 코어팀과 함께하는 고객 성공 전략 (황인철 상무 & 박성훈 테크니컬 어카운트 매니저 & 김소희 컨설턴트)
AWS CLOUD 2017 - AWS 코어팀과 함께하는 고객 성공 전략 (황인철 상무 & 박성훈 테크니컬 어카운트 매니저 & 김소희 컨설턴트)
 

Similaire à AWS CLI Automate AWS Services

The Best of Both Worlds: Implementing Hybrid IT with AWS (ENT218) | AWS re:In...
The Best of Both Worlds: Implementing Hybrid IT with AWS (ENT218) | AWS re:In...The Best of Both Worlds: Implementing Hybrid IT with AWS (ENT218) | AWS re:In...
The Best of Both Worlds: Implementing Hybrid IT with AWS (ENT218) | AWS re:In...Amazon Web Services
 
Becoming a Command Line Expert with the AWS CLI (TLS304) | AWS re:Invent 2013
Becoming a Command Line Expert with the AWS CLI (TLS304) | AWS re:Invent 2013Becoming a Command Line Expert with the AWS CLI (TLS304) | AWS re:Invent 2013
Becoming a Command Line Expert with the AWS CLI (TLS304) | AWS re:Invent 2013Amazon Web Services
 
AWS Batch를 통한 손쉬운 일괄 처리 작업 관리하기 - 윤석찬 (AWS 테크에반젤리스트)
AWS Batch를 통한 손쉬운 일괄 처리 작업 관리하기 - 윤석찬 (AWS 테크에반젤리스트)AWS Batch를 통한 손쉬운 일괄 처리 작업 관리하기 - 윤석찬 (AWS 테크에반젤리스트)
AWS Batch를 통한 손쉬운 일괄 처리 작업 관리하기 - 윤석찬 (AWS 테크에반젤리스트)Amazon Web Services Korea
 
Deep Dive - Advanced Usage of the AWS CLI
Deep Dive - Advanced Usage of the AWS CLIDeep Dive - Advanced Usage of the AWS CLI
Deep Dive - Advanced Usage of the AWS CLIAmazon Web Services
 
DEV323_Introduction to the AWS CLI
DEV323_Introduction to the AWS CLIDEV323_Introduction to the AWS CLI
DEV323_Introduction to the AWS CLIAmazon Web Services
 
AWS SSA Webinar 30 - Getting Started with AWS - Infrastructure as Code - Terr...
AWS SSA Webinar 30 - Getting Started with AWS - Infrastructure as Code - Terr...AWS SSA Webinar 30 - Getting Started with AWS - Infrastructure as Code - Terr...
AWS SSA Webinar 30 - Getting Started with AWS - Infrastructure as Code - Terr...Cobus Bernard
 
AWS SDK for PHP のインストールから 始めるクラウドマスターへの道 〜 Promise による非同期オペレーション 〜
AWS SDK for PHP のインストールから 始めるクラウドマスターへの道 〜 Promise による非同期オペレーション 〜 AWS SDK for PHP のインストールから 始めるクラウドマスターへの道 〜 Promise による非同期オペレーション 〜
AWS SDK for PHP のインストールから 始めるクラウドマスターへの道 〜 Promise による非同期オペレーション 〜 崇之 清水
 
From One to Many: Diving Deeper into Evolving VPC Design (ARC310-R2) - AWS re...
From One to Many: Diving Deeper into Evolving VPC Design (ARC310-R2) - AWS re...From One to Many: Diving Deeper into Evolving VPC Design (ARC310-R2) - AWS re...
From One to Many: Diving Deeper into Evolving VPC Design (ARC310-R2) - AWS re...Amazon Web Services
 
OSCamp #4 on Foreman | CLI tools with Foreman by Martin Bačovský
OSCamp #4 on Foreman | CLI tools with Foreman by Martin BačovskýOSCamp #4 on Foreman | CLI tools with Foreman by Martin Bačovský
OSCamp #4 on Foreman | CLI tools with Foreman by Martin BačovskýNETWAYS
 
Real Time Health Analytics With WebSockets Python 3 and Redis PubSub: Benjami...
Real Time Health Analytics With WebSockets Python 3 and Redis PubSub: Benjami...Real Time Health Analytics With WebSockets Python 3 and Redis PubSub: Benjami...
Real Time Health Analytics With WebSockets Python 3 and Redis PubSub: Benjami...Redis Labs
 
AWS CLI: 2017 and Beyond - DEV307 - re:Invent 2017
AWS CLI: 2017 and Beyond - DEV307 - re:Invent 2017AWS CLI: 2017 and Beyond - DEV307 - re:Invent 2017
AWS CLI: 2017 and Beyond - DEV307 - re:Invent 2017Amazon Web Services
 
AtlasCamp 2014: Building a Production Ready Connect Add-On
AtlasCamp 2014: Building a Production Ready Connect Add-OnAtlasCamp 2014: Building a Production Ready Connect Add-On
AtlasCamp 2014: Building a Production Ready Connect Add-OnRobin Fernandes
 
AWS Lambda with Serverless Framework and Java
AWS Lambda with Serverless Framework and JavaAWS Lambda with Serverless Framework and Java
AWS Lambda with Serverless Framework and JavaManish Pandit
 
Automating Your Azure Environment
Automating Your Azure EnvironmentAutomating Your Azure Environment
Automating Your Azure EnvironmentMichael Collier
 
Creating APIs with the WSO2 Platform
Creating APIs with the WSO2 PlatformCreating APIs with the WSO2 Platform
Creating APIs with the WSO2 PlatformSagara Gunathunga
 
Software as a Service workshop / Unlocked: the Hybrid Cloud 12th May 2014
Software as a Service workshop / Unlocked: the Hybrid Cloud 12th May 2014Software as a Service workshop / Unlocked: the Hybrid Cloud 12th May 2014
Software as a Service workshop / Unlocked: the Hybrid Cloud 12th May 2014Rackspace Academy
 

Similaire à AWS CLI Automate AWS Services (20)

Development Workflows on AWS
Development Workflows on AWSDevelopment Workflows on AWS
Development Workflows on AWS
 
The Best of Both Worlds: Implementing Hybrid IT with AWS (ENT218) | AWS re:In...
The Best of Both Worlds: Implementing Hybrid IT with AWS (ENT218) | AWS re:In...The Best of Both Worlds: Implementing Hybrid IT with AWS (ENT218) | AWS re:In...
The Best of Both Worlds: Implementing Hybrid IT with AWS (ENT218) | AWS re:In...
 
Becoming a Command Line Expert with the AWS CLI (TLS304) | AWS re:Invent 2013
Becoming a Command Line Expert with the AWS CLI (TLS304) | AWS re:Invent 2013Becoming a Command Line Expert with the AWS CLI (TLS304) | AWS re:Invent 2013
Becoming a Command Line Expert with the AWS CLI (TLS304) | AWS re:Invent 2013
 
AWS Batch를 통한 손쉬운 일괄 처리 작업 관리하기 - 윤석찬 (AWS 테크에반젤리스트)
AWS Batch를 통한 손쉬운 일괄 처리 작업 관리하기 - 윤석찬 (AWS 테크에반젤리스트)AWS Batch를 통한 손쉬운 일괄 처리 작업 관리하기 - 윤석찬 (AWS 테크에반젤리스트)
AWS Batch를 통한 손쉬운 일괄 처리 작업 관리하기 - 윤석찬 (AWS 테크에반젤리스트)
 
AWS Serverless Workshop
AWS Serverless WorkshopAWS Serverless Workshop
AWS Serverless Workshop
 
Deep Dive - Advanced Usage of the AWS CLI
Deep Dive - Advanced Usage of the AWS CLIDeep Dive - Advanced Usage of the AWS CLI
Deep Dive - Advanced Usage of the AWS CLI
 
DEV323_Introduction to the AWS CLI
DEV323_Introduction to the AWS CLIDEV323_Introduction to the AWS CLI
DEV323_Introduction to the AWS CLI
 
AWS SSA Webinar 30 - Getting Started with AWS - Infrastructure as Code - Terr...
AWS SSA Webinar 30 - Getting Started with AWS - Infrastructure as Code - Terr...AWS SSA Webinar 30 - Getting Started with AWS - Infrastructure as Code - Terr...
AWS SSA Webinar 30 - Getting Started with AWS - Infrastructure as Code - Terr...
 
AWS SDK for PHP のインストールから 始めるクラウドマスターへの道 〜 Promise による非同期オペレーション 〜
AWS SDK for PHP のインストールから 始めるクラウドマスターへの道 〜 Promise による非同期オペレーション 〜 AWS SDK for PHP のインストールから 始めるクラウドマスターへの道 〜 Promise による非同期オペレーション 〜
AWS SDK for PHP のインストールから 始めるクラウドマスターへの道 〜 Promise による非同期オペレーション 〜
 
From One to Many: Diving Deeper into Evolving VPC Design (ARC310-R2) - AWS re...
From One to Many: Diving Deeper into Evolving VPC Design (ARC310-R2) - AWS re...From One to Many: Diving Deeper into Evolving VPC Design (ARC310-R2) - AWS re...
From One to Many: Diving Deeper into Evolving VPC Design (ARC310-R2) - AWS re...
 
OSCamp #4 on Foreman | CLI tools with Foreman by Martin Bačovský
OSCamp #4 on Foreman | CLI tools with Foreman by Martin BačovskýOSCamp #4 on Foreman | CLI tools with Foreman by Martin Bačovský
OSCamp #4 on Foreman | CLI tools with Foreman by Martin Bačovský
 
Real Time Health Analytics With WebSockets Python 3 and Redis PubSub: Benjami...
Real Time Health Analytics With WebSockets Python 3 and Redis PubSub: Benjami...Real Time Health Analytics With WebSockets Python 3 and Redis PubSub: Benjami...
Real Time Health Analytics With WebSockets Python 3 and Redis PubSub: Benjami...
 
AWS CLI: 2017 and Beyond - DEV307 - re:Invent 2017
AWS CLI: 2017 and Beyond - DEV307 - re:Invent 2017AWS CLI: 2017 and Beyond - DEV307 - re:Invent 2017
AWS CLI: 2017 and Beyond - DEV307 - re:Invent 2017
 
AtlasCamp 2014: Building a Production Ready Connect Add-On
AtlasCamp 2014: Building a Production Ready Connect Add-OnAtlasCamp 2014: Building a Production Ready Connect Add-On
AtlasCamp 2014: Building a Production Ready Connect Add-On
 
Aws cli
Aws cliAws cli
Aws cli
 
Aws cli
Aws cliAws cli
Aws cli
 
AWS Lambda with Serverless Framework and Java
AWS Lambda with Serverless Framework and JavaAWS Lambda with Serverless Framework and Java
AWS Lambda with Serverless Framework and Java
 
Automating Your Azure Environment
Automating Your Azure EnvironmentAutomating Your Azure Environment
Automating Your Azure Environment
 
Creating APIs with the WSO2 Platform
Creating APIs with the WSO2 PlatformCreating APIs with the WSO2 Platform
Creating APIs with the WSO2 Platform
 
Software as a Service workshop / Unlocked: the Hybrid Cloud 12th May 2014
Software as a Service workshop / Unlocked: the Hybrid Cloud 12th May 2014Software as a Service workshop / Unlocked: the Hybrid Cloud 12th May 2014
Software as a Service workshop / Unlocked: the Hybrid Cloud 12th May 2014
 

Dernier

Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesŁukasz Chruściel
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfMarharyta Nedzelska
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringHironori Washizaki
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
Sending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdfSending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdf31events.com
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtimeandrehoraa
 
PREDICTING RIVER WATER QUALITY ppt presentation
PREDICTING  RIVER  WATER QUALITY  ppt presentationPREDICTING  RIVER  WATER QUALITY  ppt presentation
PREDICTING RIVER WATER QUALITY ppt presentationvaddepallysandeep122
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfFerryKemperman
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Velvetech LLC
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...Technogeeks
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Cizo Technology Services
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprisepreethippts
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEEVICTOR MAESTRE RAMIREZ
 

Dernier (20)

Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New Features
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdf
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their Engineering
 
Odoo Development Company in India | Devintelle Consulting Service
Odoo Development Company in India | Devintelle Consulting ServiceOdoo Development Company in India | Devintelle Consulting Service
Odoo Development Company in India | Devintelle Consulting Service
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
Sending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdfSending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdf
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtime
 
PREDICTING RIVER WATER QUALITY ppt presentation
PREDICTING  RIVER  WATER QUALITY  ppt presentationPREDICTING  RIVER  WATER QUALITY  ppt presentation
PREDICTING RIVER WATER QUALITY ppt presentation
 
Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...
 
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort ServiceHot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprise
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
 

AWS CLI Automate AWS Services

  • 1. AWS 파트너와 함께하는 Partner Hands On Labs 2 2016. 10. 17 베스핀글로벌 신인철
  • 3. 2016 ⓒ BESPIN GLOBAL 시간 내용 담당자 14:00-14:20 등록 및 실습 환경 설정 베스핀글로벌 SA 14:20-14:30 공지사항 및 파트너사 소개 PDM 14:30-15:00 파트너사 발표 세션 베스핀글로벌 SA 15:00-15:50 강사 주도식 실습 베스핀글로벌 SA 15:50-16:00 Coffee Break 16:00-17:50 자유 주제 선택 실습 AWS SA 17:50-18:00 종료 공지사항 김진영 매니저 일정
  • 4. AWS 서비스에 접속하는 3가지 방법 Management Interface CLI SDK Web http://aws.amazon.com/tools/ http://aws.amazon.com/cli/ http://aws.amazon.com/console/
  • 5. 1. AWS Management Console • AWS Managemnet Console • 고객사의 컴퓨팅, 스토리지, 그리고 기타 클라우드 리소 스를 관리하기 위한 사용하기 쉬운 그래픽 인터페이스 • 각 서비스를 위한 대부분의 기능을 지원하여, 콘솔 상에 서 대부분의 AWS 제품을 사용 가능 • AWS 관리 콘솔은 대부분의 컴퓨팅, 스토리지, 그리고 기타 AWS 서비스에 액세스해 관리하도록 도와주는 WEB UI
  • 7. 2. AWS CLI(Command Line Interface) • CLI는 개발자와 같이 명령을 입력하는 것이 더 편 한 이들을 위한 도구. AWS 제품 별 CLI와 설명서에 대한 링크들을 하기 URL의 웹 페이지에서 확인 • 명령줄 도구는 개발자가 명령 프롬프트 상에서 직 접 명령을 실행할
  • 8. 2016 ⓒ BESPIN GLOBAL • AWS CLI(Command Line Interface) • 명령줄 인터페이스 (CLI) 도구는 명령 프롬프트 상에서 AWS API와 바로 연동되는 편리한 Scripting Interface를 제공. 일반적인 명령줄 프롬프트인 PROMPT> 접두사를 명령줄 텍스트에 붙여 표기 리눅스 $aws ec2 describe-regions 윈도우 C:>aws ec2 describe-regions
  • 9. 3. AWS SDK(Software Development Kit) • SDK는 고객사에서 선호하는 개발 언어를 사용해 AWS 서비스에 쉽게 액세스. • 각 개발 언어 별 SDK 참조 링크 확인 https://aws.amazon.com/ko/tools/ • 각 개발 언어 별 SDK Sample Code 참조 링크 확인 https://aws.amazon.com/code/
  • 11. 2016 ⓒ BESPIN GLOBAL Windows: 32-bit MSI : http://s3.amazonaws.com/aws-cli/AWSCLI32.msi 64-bit MSI : http://s3.amazonaws.com/aws-cli/AWSCLI64.msi Bundled Installer : http://aws-cli.s3.amazonaws.com/awscli-bundle.zip Installation-Windows
  • 12. Installation-Linux $ wget http://s3.amazon.com/aws-cli/awscli-bundle.zip $ unzip awscli-bundle.zip $ ./install $ ~/.local/lib/aws/bin/aws --version Pip $ pip install –upgrade awscli
  • 14. 2016 ⓒ BESPIN GLOBAL Credential Configuration IAM Role Environment Config File: ~/.aws/config Automatic AWS_ACCESS_KEY_ID aws_access_key_id AWS_SECRET_ACCESS_KEY Aws_secret_access_key
  • 16. 2016 ⓒ BESPIN GLOBAL IAM Role 할당 - Automatic • EC2 생성 시 미리 생성한 Role을 할당하면 Access Key/Secret Key가 필요 없다. • 나중엔 Role 적용 못한다.
  • 18. 1 2
  • 19. 3 4
  • 20. 5
  • 21. Configuration files ~/.aws/credentials All AWS SDK Only Contains ~/.aws/config Use Only CLI Can Contains
  • 22. 2016 ⓒ BESPIN GLOBAL AWS access key ID [**ABCD]: AWS secret access key [****************EFGH]: Default region name [ap-northeast-2]: Default output format [json]: $ aws configure
  • 23. 2016 ⓒ BESPIN GLOBAL AWS access key ID [**ABCD]: AWS secret access key [****************EFGH]: Default region name [ap-northeast-2]: Default output format [json]: $ aws configure /list /get /set
  • 24. 2016 ⓒ BESPIN GLOBAL 그럼 AWS CLI 명령어를 실행해 봅니다. !!!
  • 25. 2016 ⓒ BESPIN GLOBAL $ aws help http://docs.aws.amazon.com/cli/latest/ref erence/ec2/describe-instances.html
  • 26. 2016 ⓒ BESPIN GLOBAL help 명령어 사용 • aws service operation help • aws service help • aws help
  • 27. 2016 ⓒ BESPIN GLOBAL { “Reservations”: [] } $ aws ec2 describe-instances
  • 28. 2016 ⓒ BESPIN GLOBAL $ aws ec2 describe-instances Service (Command) Operation (Subcommand)
  • 29. 2016 ⓒ BESPIN GLOBAL $ aws ec2 describe-instances
  • 30. 2016 ⓒ BESPIN GLOBAL Programmatic processing Integrate with JSON tools JSON TABLE TEXT Interactive browsing Easier to visually parse Piping to text tools Easy to parse Output Format
  • 31. 2016 ⓒ BESPIN GLOBAL { “Places”: [ { “City”: “Seattle”, “State”: “WA” }, { “City”: “Las Vegas”, “State”: “NV” } ] } JSON TABLE TEXT -------------------------- |SomeOperationName| +-----------------------+ || Places |+----------------------+| ||City | State || |+----------------------+| ||Seattle | WA ||Las Vegas | NV || |+----------------------+| PLACES Seattle WA PLACES Las Vegas NV Output Format
  • 32. 2016 ⓒ BESPIN GLOBAL $ aws ec2 describe-regions
  • 33. 2016 ⓒ BESPIN GLOBAL $ { "Regions": [ { "Endpoint": "ec2.ap-south-1.amazonaws.com", "RegionName": "ap-south-1" }, { "Endpoint": "ec2.eu-west-1.amazonaws.com", "RegionName": "eu-west-1" }, { "Endpoint": "ec2.ap-southeast-1.amazonaws.com", "RegionName": "ap-southeast-1" }, { "Endpoint": "ec2.ap-southeast-2.amazonaws.com", "RegionName": "ap-southeast-2" }, Output JSON
  • 34. 2016 ⓒ BESPIN GLOBAL ---------------------------------------------------------- | DescribeRegions | +--------------------------------------------------------+ || Regions || |+-----------------------------------+------------------+| || Endpoint | RegionName || |+-----------------------------------+------------------+| || ec2.ap-south-1.amazonaws.com | ap-south-1 || || ec2.eu-west-1.amazonaws.com | eu-west-1 || || ec2.ap-southeast-1.amazonaws.com | ap-southeast-1 || || ec2.ap-southeast-2.amazonaws.com | ap-southeast-2 || || ec2.eu-central-1.amazonaws.com | eu-central-1 || || ec2.ap-northeast-2.amazonaws.com | ap-northeast-2 || || ec2.ap-northeast-1.amazonaws.com | ap-northeast-1 || || ec2.us-east-1.amazonaws.com | us-east-1 || || ec2.sa-east-1.amazonaws.com | sa-east-1 || || ec2.us-west-1.amazonaws.com | us-west-1 || || ec2.us-west-2.amazonaws.com | us-west-2 || |+-----------------------------------+------------------+| Output Table
  • 35. 2016 ⓒ BESPIN GLOBAL REGIONS ec2.ap-south-1.amazonaws.com ap-south-1 REGIONS ec2.eu-west-1.amazonaws.com eu-west-1 REGIONS ec2.ap-southeast-1.amazonaws.com ap-southeast-1 REGIONS ec2.ap-southeast-2.amazonaws.com ap-southeast-2 REGIONS ec2.eu-central-1.amazonaws.com eu-central-1 REGIONS ec2.ap-northeast-2.amazonaws.com ap-northeast-2 REGIONS ec2.ap-northeast-1.amazonaws.com ap-northeast-1 REGIONS ec2.us-east-1.amazonaws.com us-east-1 REGIONS ec2.sa-east-1.amazonaws.com sa-east-1 REGIONS ec2.us-west-1.amazonaws.com us-west-1 REGIONS ec2.us-west-2.amazonaws.com us-west-2 Output Text
  • 36. 2016 ⓒ BESPIN GLOBAL $ aws ec2 describe-instances
  • 37. 2016 ⓒ BESPIN GLOBAL { "Reservations": [ { "OwnerId": "321653183891", "ReservationId": "r-58bf2a87", "Groups": [], "Instances": [ { "Monitoring": { "State": "disabled" }, "PublicDnsName": "ec2-52-65-186-23.ap-southeast- 2.compute.amazonaws.com", "State": { "Code": 16, "Name": "running" }, Output JSON
  • 38. 2016 ⓒ BESPIN GLOBAL ----------------------------------------------------------------------------------------- | DescribeInstances | +---------------------------------------------------------------------------------------+ || Reservations || |+-------------------------------------------+-----------------------------------------+| || OwnerId | 321653183891 || || ReservationId | r-58bf2a87 || |+-------------------------------------------+-----------------------------------------+| ||| Instances ||| ||+------------------------+----------------------------------------------------------+|| ||| AmiLaunchIndex | 0 ||| ||| Architecture | x86_64 ||| ||| ClientToken | gBjjZ1473066131341 ||| ||| EbsOptimized | False ||| ||| Hypervisor | xen ||| ||| ImageId | ami-dc361ebf ||| ||| InstanceId | i-fad124e1 ||| ||| InstanceType | t2.micro ||| ||| KeyName | bespin-Syney-Inchulshin ||| ||| LaunchTime | 2016-09-07T07:29:43.000Z ||| ||| PrivateDnsName | ip-172-31-11-196.ap-southeast-2.compute.internal ||| ||| PrivateIpAddress | 172.31.11.196 ||| Output Table
  • 39. 2016 ⓒ BESPIN GLOBAL RESERVATIONS 321653183891 r-58bf2a87 INSTANCES 0 x86_64 gBjjZ1473066131341 False xen ami-dc361ebf i- fad124e1 t2.micro bespin-Syney-Inchulshin 2016-09-07T07:29:43.000Z ip-172-31-11- 196.ap-southeast-2.compute.internal 172.31.11.196 ec2-52-65-186-23.ap-southeast- 2.compute.amazonaws.com 52.65.186.23/dev/xvda ebs True subnet- 4a0b492f hvm vpc-e2fb6087 BLOCKDEVICEMAPPINGS /dev/xvda EBS 2016-09-05T09:02:12.000Z True attached vol-47e084c8 IAMINSTANCEPROFILE arn:aws:iam::321653183891:instance-profile/InchulShin AIPAJV7QAA3BLN54LK536 MONITORING disabled NETWORKINTERFACES Primary network interface 02:2f:9b:e1:4b:bb eni- d2dc8cab 321653183891 ip-172-31-11-196.ap-southeast-2.compute.internal 172.31.11.196 True in-use subnet-4a0b492f vpc-e2fb6087 Output Text
  • 40. 2016 ⓒ BESPIN GLOBAL Query Data Query Result {"foo": "bar"} {"foo": {"bar": "baz"}} {"foo": [0, 1]} {"bar": 1, "baz": 2} {"a": 1, "b": 2, "c": 3} {"a": 1, "b": 2, "c": 3} [{"a": 1}, {"a": 2}, {"a": 3}, {"a": 4}] foo foo.bar foo[1] foo or bar [a, b] {a: a, other: b} [*].a "bar" baz 1 1 [1, 2] {"a": 1, "other": 2} [1, 2, 3, 4]
  • 41. 2016 ⓒ BESPIN GLOBAL $ aws ec2 describe-instances --query Reservations[*].Instances[*] .[InstanceId,State.Name] [ [ [ "i-fad124e1", "running" ] ], [ [ "i-b7a7da18", "running" ] ], [ [ "i-ef34766d", "terminated" ] ] ] ------------------------------ | DescribeInstances | +-------------+--------------+ | i-fad124e1 | running | | i-b7a7da18 | running | | i-ef34766d | terminated | +-------------+--------------+ i-fad124e1 running i-b7a7da18 running i-ef34766d terminated JSON TABLE TEXT
  • 42. 2016 ⓒ BESPIN GLOBAL aws ec2 describe-instances --query 'Reservations[*].Instances[*].{ID:Instanc eId, State:State.Name}' [ [ { "State": "running", "ID": "i-fad124e1" } ], [ { "State": "running", "ID": "i-b7a7da18" } ], [ { "State": "terminated", "ID": "i-ef34766d" } ] ] ------------------------------ | DescribeInstances | +-------------+--------------+ | ID | State | +-------------+--------------+ | i-fad124e1 | running | | i-b7a7da18 | running | | i-ef34766d | terminated | +-------------+--------------+ i-fad124e1 running i-b7a7da18 running i-ef34766d terminated JSON TABLE TEXT
  • 43. 2016 ⓒ BESPIN GLOBAL Demo
  • 44. 2016 ⓒ BESPIN GLOBAL One Liner Script
  • 45. 2016 ⓒ BESPIN GLOBAL AWS CLI One Liner 첫번째 시나리오 - 나는 AWS 관리자이다. AWS CLI 를 활용하여 IAM 관련된 정보를 알아보고자 한다. - 다음과 같이 AWS CLI 명령어는 알고 있다. 그러나 IAM User가 많아서 한번 실행으로 작업하고 싶다. $ aws iam list-users –query Users[].[UserName] $ aws iam delete-user –user-name <username> $ aws iam list-access-keys --user-name <username>
  • 46. 2016 ⓒ BESPIN GLOBAL AWS CLI One Liner – 반복 순환 (2) $ for name in (aws iam list-users --query “Users[].[UserName]” --output text); do aws iam list-access-keys --user-name “$name” --query AccessKeyMetadata[*].[UserName,AccessKeyId] --output text ; done
  • 47. 2016 ⓒ BESPIN GLOBAL AWS CLI One Liner – 반복 순환 (3) $ for name in (aws iam list-users --query Users[].[UserName] --output text); do aws iam list-access-keys --user-name $name --output text | awk ‘{print “ID : “,$5”,” “ACCESS :”,$2}’ ; done
  • 48. 2016 ⓒ BESPIN GLOBAL AWS CLI One Liner 두번쨰 시나리오 - 나는 AWS 관리자이다. AWS CLI 를 활용하여 IAM 관련된 정보를 알아보고자 한다. - 다음과 같이 AWS CLI 명령어는 알고 있다. 그러나 IAM User가 많아서 한번 실행으로 작업하고 싶다. - 반복 순환문( $ aws iam list-users –query Users[].[UserName] -- output text
  • 49. 2016 ⓒ BESPIN GLOBAL AWS CLI One Liner - xargs $ aws iam list-users --query Users[].[UserName] --output text | xargs –I {} –P 10 aws iam list-access-keys --user-name “{}” --output text
  • 50. 2016 ⓒ BESPIN GLOBAL •For Or While 반복 순환문을 사용하면 좋다. •Xargs를 사용한다면, -I {} 같이 사용 •xargs -P N 은 병렬 실행하여 사용 •“[UserName]” 은 “.UserName” 에서 output을 각각 새로운 Line을 얻는다 AWS CLI One Liner
  • 51. 2016 ⓒ BESPIN GLOBAL $ aws ec2 describe-instances --query 'Reservations[*].Instances[*].[State.Name, InstanceId]' --output text | > grep stopped | > awk '{print $2}' | > while read line; > do aws ec2 modify-instance-attribute - -instance-id $line --instance-type '{"Value": "m1.medium"}'; > done Example - AWS CLI One Liner
  • 52. 2016 ⓒ BESPIN GLOBAL N Liner Script
  • 53. 2016 ⓒ BESPIN GLOBAL #!/bin/bash #Create a new user and create a new profile. aws iam create-‐user -‐-‐user-‐name reinvent-‐user credentials=$(aws iam create-‐access-‐key -‐-‐user-‐name reinvent-‐user -‐query 'AccessKey.[AccessKeyId,SecretAccessKey]‘ -‐output text) access_key_id=$(echo $credentials | cut ‐d‘ ‘ ‐f 1) secret_access_key=$(echo $credentials | cut ‐d‘ ‘ ‐f 2) aws configure set profile.reinvent.aws_access_key_id "$access_key_id" aws configure set profile.reinvent.secret_access_key "$secret_access_key" Example 1 - create-new-user.sh
  • 54. Waiters - EC2 상태 값
  • 55. #!/bin/bash instance_id=$(aws ec2 run-instances --image-id ami-12345 --query Reservations[].Instances[].InstanceId --output text) instance_state=$(aws ec2 describe-instances --instance-ids $instance_id --query 'Reservations[].Instances[].State.Name') while [ "$instance_state“ != "running“ ] do sleep 1 instance_state=$(aws ec2 describe-instances --instance-‐ids $instance_id --query 'Reservations[].Instances[].State.Name') done Example 2 - ec2-instance-running.sh
  • 56. 2016 ⓒ BESPIN GLOBAL WE ARE HIRING!!! • KOREA • CHINA • JAPAN • USA PLEASE JOIN US