Skip to main content

Deploying via CloudFormation

Validate​

aws cloudformation validate-template \
--region us-east-2 \
--template-body file://cloudformation.yaml

Create​

aws cloudformation create-stack \
--region us-east-2 \
--stack-name LAMP \
--template-body file://cloudformation.yaml \
--capabilities CAPABILITY_NAMED_IAM \
--parameters HostedZoneId=YOUR_HOSTED_ZONE_HERE,DomainName=YOUR_DOMAIN_NAME_HERE,InstanceType=t3.medium,ImageId=ami-0f57b4cec24530068,VpcCidrBlock=10.0.0.0/16,SubnetCidrBlock=10.0.0.0/24,KeyName=YOUR_KEY_NAME_HERE,SecurityGroupName=mindLAMP-platform-ec2-sg,SshCidrBlock=52.95.4.0/24,Ec2Instance01Name=mindLAMP-platform-ec2-01,Ec2Instance02Name=mindLAMP-platform-ec2-02

Update​

aws cloudformation update-stack \
--region us-east-2 \
--stack-name LAMP \
--template-body file://cloudformation.yaml \
--capabilities CAPABILITY_NAMED_IAM \
--parameters HostedZoneId=YOUR_HOSTED_ZONE_HERE,DomainName=YOUR_DOMAIN_NAME_HERE,InstanceType=t3.medium,ImageId=ami-0f57b4cec24530068,VpcCidrBlock=10.0.0.0/16,SubnetCidrBlock=10.0.0.0/24,KeyName=YOUR_KEY_NAME_HERE,SecurityGroupName=mindLAMP-platform-ec2-sg,SshCidrBlock=52.95.4.0/24,Ec2Instance01Name=mindLAMP-platform-ec2-01,Ec2Instance02Name=mindLAMP-platform-ec2-02

Delete​

aws cloudformation delete-stack \
--region us-east-2 \
--stack-name LAMP