Example project for an EC2 autoscaling setup using Amazon Linux 2 and systemd.
make deploy STAGE=dev AWS_REGION=eu-central-1
Get the endpoint of the load balancer:
export STAGE=dev AWS_REGION=eu-central-1
./awsinfo.sh cfn outputs --region ${AWS_REGION} aws-ec2-amzn2-example-${STAGE}-ec2
Make some requests
$ curl .....elb.amazonaws.com
export STAGE=dev AWS_REGION=eu-central-1
./awsinfo.sh logs --region ${AWS_REGION} -G -s "-5minutes" aws-ec2-amzn2-example-${STAGE}-ec2/service