- AWS User or AWS Role (with a cloudwatch-metrics policy)
- AWS CLI
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"cloudwatch:PutMetricData",
"ec2:DescribeTags"
],
"Effect": "Allow",
"Resource": "*"
}
]
}
aws configure
AWS Access Key ID [****************ABCD]:
AWS Secret Access Key [****************1234]:
Default region name [eu-west-1]:
Default output format [json]:
AWS Access Key ID [None]:
AWS Secret Access Key [None]:
Default region name [eu-west-1]:
Default output format [json]:
For IAM Roles, only the region is required. Leave the Access Key and Secret Access Key blank
h2. Installation
mkdir -p aws/cloudwatch-events
cd aws/cloudwatch-events
git clone https://github.com/marinosoftware/cloudwatch-events.git .
chmod +x install.sh
sudo ./install.sh
h2. Test Installation
./put-disk-space.sh
./put-meminfo.sh