Recent Post»

Recent Comment»

« 2024/4 »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
04-28 13:41

 
 

aws 전체 리전에 생성된 VM 목록 조회

Tip | 2018. 2. 24. 01:03 | Posted by 짱아
반응형

aws 전체 리전에 생성된 VM 목록 조회


for region in `aws ec2 describe-regions --output text | cut -f3`
do
    echo -e "\nListing Instances in region:'$region'..."
    aws ec2 describe-instances --region $region
done



for region in `aws ec2 describe-regions --output text | cut -f3`
do
    echo -e "\nListing Instances in region:'$region'..."
    aws ec2 describe-instances --region $region | jq '.Reservations[] | ( .Instances[] | {state: .State.Name, name: .KeyName, type: .InstanceType, key: .KeyName})'
done


  • jq 설치 (@centos)

wget -O jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 chmod +x ./jq cp jq /usr/bin


반응형
:

aws s3 cli 이용하여 버킷 사용량 구하기

Tip | 2016. 10. 9. 11:06 | Posted by 짱아
반응형

aws s3 cli를 이용하여 버킷 사용량 구하기

[​환경]
* CentOS

​​​​​[aws cli install]
1. python 2.6.5 이상

2. pip 설치
$ yum install python-pip

​3. aws cli 설치
$ pip install awscli

​4. aws cli 환경설정
$ aws configure
AWS Access Key ID : access key 입력 (관련 값은 Security Credentials>Users 에서 확인 가능)

AWS Secret Access Key : secret access key ( Security Access Key 입력)

Default region name : ap-northeast-2 (seoul region을 이용하는 경우)

Default output format : json

5. 대상 버킷에 대한 사용량 구하기 위한 스크립트
$ aws s3 ls s3://<bucketname> --recursive | grep -v -E "(Bucket: |Prefix: |LastWriteTime|^$|--)" | awk 'BEGIN {total=0}{total+=$3}END{print total/1024/1024" MB"}'

<bucketname>에 사용량 확인을 원하는 bucket명을 입력

반응형
:

게임 서버, 클라우드로 옮겨보니...

News | 2012. 4. 26. 10:53 | Posted by 짱아
반응형

http://zum.com/#!/news=033201204252277553


게임서버를 온 프레미스(On Premise) 환경이 아닌 클라우드 환경에서 운영해 온 '넥슨 아메리카'의 운영 결과에 대한 기사.

3년간 소셜게임을 아마존웹서비스(AWS)에서 운영하고 안정적인 결과를 얻었으며, 클라이언트 기반의 온라인 게임도 클라우드에서 운영해 보겠다는 생각.



반응형
:

AWS(Amazon Web Services)

Service | 2008. 9. 17. 17:56 | Posted by 짱아
반응형
아마존닷컴은 온라인 쇼핑몰로 유명하다.
하지만, 아마존 닷컴은 웹서비스를 하는데 필요한 기술적인 플랫폼이라 할수 있는 AWS를 제공하고 있다.
이 AWS의 기본 원칙은 다음과 같다고 Jeff Bezos(아마존닷컴 CEO)는 이야기한다.

Easy to use
Fast
Elastic
Highly available
Pay by the drink
* "Pay by the drink"는 아마존 닷컴의 AWS에 대한 과금모델에 대한 용어로 최근 많이 이용되고 있으며, PAYG(Pay-As-You-Go)라는 의미와 같다.
반응형
: