AMI=`cat ../packer/new_ami`

aws cloudformation create-stack --stack-name agilefant \
--template-url https://s3-ap-southeast-2.amazonaws.com/cfnstore/agilefant/1.0.0/top.json \
--capabilities CAPABILITY_IAM \
--parameters "ParameterKey=AdminCIDR,ParameterValue=27.99.5.119/32" \
"ParameterKey=CfnBaseName,ParameterValue=perrinncfn" \
"ParameterKey=CfnBucketName,ParameterValue=agilefant" \
"ParameterKey=DatabaseInstanceClass,ParameterValue=db.t2.micro" \
"ParameterKey=DatabaseName,ParameterValue=agilefant" \
"ParameterKey=DatabasePassword,ParameterValue=P4$$w0rd" \
"ParameterKey=DatabaseStorage,ParameterValue=5" \
"ParameterKey=DatabaseUser,ParameterValue=afuser" \
"ParameterKey=DnsDomain,ParameterValue=perrinapp.net" \
"ParameterKey=DnsId,ParameterValue=Z8" \
"ParameterKey=Environment,ParameterValue=test" \
"ParameterKey=KeyName,ParameterValue=afant.test" \
"ParameterKey=LinuxWebServerAmi,ParameterValue=${AMI}" \
"ParameterKey=LogglyHost,ParameterValue=logs-01.loggly.com:514" \
"ParameterKey=LogglyKey,ParameterValue=ce5" \
"ParameterKey=NewRelicKey,ParameterValue=90" \
"ParameterKey=ScriptRegion,ParameterValue=ap-southeast-2" \
"ParameterKey=StackRelease,ParameterValue=1.0.0" \
"ParameterKey=WebServerInstanceType,ParameterValue=t2.micro" 


