安装下列工具:
最好都是最新的版本.
cd shell
- 运行
vagrant up --provision-with shell
cd ansible
- 运行
vagrant up --provision-with ansible
cd puppet
- 运行
vagrant up
- 运行
vagrant up --provision-with puppet
cd chef
- 运行
vagrant up --provision-with chef
-
创建vpc,
aws cloudformation create-stack --stack-name vpc-20170108 --template-body file://aws/cloudformation/template/vpc.json --parameters file://aws/cloudformation/parameters/vpc-params.json
-
创建应用,
aws cloudformation create-stack --stack-name ciao --template-body file://cloudformation/template/ciao.yml --capabilities CAPABILITY_IAM
-
immutable asg deployment
aws cloudformation update-stack --stack-name ciao --template-body file://cloudformation/template/ciao.yml --capabilities CAPABILITY_IAM
- ssh 到vagrant虚拟机,
vagrant ssh