this is for example and try to build CLI using golang. you can combine with crontab for schedule start stop instance
- make sure service accout to client instance only
imam@imam-mv:~$ export GOOGLE_APPLICATION_CREDENTIALS=
- make sure iam to allow read only
imam@imam-mv:~$ aws configure
AWS Access Key ID [****************XXXX]:
AWS Secret Access Key [****************XXXX]:
Default region name [ap-southeast-1]:
Default output format [None]:
Soon
imam@imam-mv:~$ go build -o ectl
imam@imam-mv:~$ ./ectl aws instance --action=start --region=ap-southeast-1 i-xxx i-xxx
imam@imam-mv:~$ ./ectl gcp instance --action=start --region=sgp i-xxx i-xxx
imam@imam-mv:~$ ./ectl digitalocean instance --action=