cloud watch monitoring script
WEB console iam 추가와 watch 지표가 생성 되는 확인만 하면 된다. 필요한 권한 cloudwatch:PutMetricData cloudwatch:GetMetricStatistics cloudwatch:ListMetrics ec2:DescribeTags policy 생성 { “Version”: “2012-10-17”, “Statement”: [ { “Sid”: “VisualEditor0”, “Effect”: “Allow”, “Action”: [ “cloudwatch:PutMetricData”, “ec2:DescribeTags”, “cloudwatch:GetMetricStatistics”, “cloudwatch:ListMetrics” ], “Resource”: “*” } ] } 생성한 정책을 user를 생성하여 부여 Shell 작업 로그인 스크립트를 실행하고 설치하는데 필요한 패키지를 설치한다. centos sudo yum install -y perl-Switch perl-DateTime perl-Sys-Syslog perl-LWP-Protocol-https perl-Digest-SHA.x86_64 unzip cd ~ ubuntu sudo apt-get install unzip libwww-perl libdatetime-perl ...