Undefined Title

How to use awscli on CentOS6

2018-04-10

I always forget how to use awscli on CentOS6 which pip doesn’t support to install awscli with python2.6. I forgot how many times I installed… I have to memorize how to do it.

Check if elastic IP is associated

2017-06-06

The sub command ec2 describe-instances doesn’t show whether it has Elastic IPs or not. Another sub command ec2 describe-addresses shows InstanceId and PublicIp.

We can join them with join command representing Name.

Grafana panel JSON generator in golang

2017-01-14

Grafana has HTTP API but it seems no APIs for panel operations at a glance.

My team has several AWS accounts and I’d like to create dashboards with CloudWatch datasource for every account. For example, such dashboards have same contents with some panels. The panels are same for each dashboard, but parameters (e.g: instance ID, account ID, metric name, etc) are different. It bothers us to create dashboards manually one by one for all accounts.

So I created a command in golang to generate panel JSON for CloudWatch.