DRYな備忘録

Don't Repeat Yourself.

2018-03-07から1日間の記事一覧

【Go言語】aws-sdk-goでGoからEC2インスタンスの作成

注意: EC2インスタンスローンチ直後はPublicIPAddressがassociateされていないので、再帰的に時間とりつつDescribeInstanceしています。(func ensureの部分) package main import ( "flag" "fmt" "log" "time" "github.com/aws/aws-sdk-go/aws" "github.co…

【メモ】AWS CLIでEC2インスタンスの作成

AWS

run-instances — AWS CLI 1.14.51 Command Reference describe-images — AWS CLI 1.14.51 Command Reference create-key-pair — AWS CLI 1.14.51 Command Reference aws ec2 run-instances help 必須パラメータと予想されるもの machine image instance type…