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.
It’s amazaingly easy to use Let’s Encrypt in golang if we use a package, https://godoc.org/golang.org/x/crypto/acme/autocert.
I made a sample running on GCP.
I usually forget way to install jq by ansible. I memorize it.
I’m into writing one-liners using
in order to briefly check some information without logging in management console.
My chrome was updated to v59 yesterday and it supports long-awaited headless mode. At once I tried it seeing Getting Started.
Just one-liner to print VPC and subnet IDs with a tag,
Name, of VPC.
Easy to see them without logging into management console of AWS.
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
I made a Vagranfile in order to launch digdag servers with postgresql backend. Digdag is a workflow manager being developed by Treasure Data. You can easily try digdag server with high availabiity.
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.