CloudFormation示例 运行cloudformation aws cloudformation create-stack --stack-name mac-sample-ec2 --template-body file:///hometestuser/mytemplate.json aws cloudformation update-stack --stack-name mac-sample-ec2 --template-body file:///hometestuser/mytemplate.json aws cloudformation delete-stack --stack-name mac-sample-ec2 连接到EC2 ssh -i {KEY_PAIR_FILE{} ubuntu@{EC2_IP}