- EC2 dashboard > Auto scaling group
- Create Auto Scaling group
- Create launch configuration > pick our specific AMI
- Choose AMI> Select AMI [My AMIs has custom AMIs]
- Choose Instance Type
- Configure details
- Name
- Advanced details >user data> As text[sample script for NodeJS application]
cd /home/ec2-user/app npm start
- Add storage > nothing needed
- Configure security group > select security group specific to EC2 instances
- Create auto scaling group
- Group name
- Group size 2
- Network: select VPC
- Subnet: select all applicable subnets
- Advanced details
- Load balancing: check Receive traffic from ELB and select the ELB
- Configure scaling policies
- To be done separately
- Configure notification : not needed now
-
-
Save brijesh-deb/927c064f38bfe3b70f027def83e05e96 to your computer and use it in GitHub Desktop.
#AWS #AutoScalingGroup
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment