AWS CloudFormation template for EC2 instance
Create stack
aws cloudformation create-stack --stack-name ec2 --template-body file://ec2.yaml --parameters file://parameters.json
Update stack
aws cloudformation update-stack --stack-name ec2 --template-body file://ec2.yaml --parameters file://parameters.json