Python script to provisions the Auto Scaling Group on AWS Cloud, using CloudFormation template.
Cloud formation template to provision Launch Template, uses t3.micro instance and also provisions security group.
Cloud formation template to provision Auto Scaling Group, which uses Launch Template.
This is a Python script that takes various arguments, mentioned below and provisions the ASG on AWS Cloud. Follow below steps to run the script.
- Pip install boto3
- Pip install ruamel.yaml
- Pip install awscli
- Required: Path to Cloud formation yaml for ASG.
- -n NAME, to Set the name for the Auto Scaling Group (ASG).
- -s SIZE, to Set the number of instances for the ASG.
- -sn, to Set the stack name for the ASG.
- -b, The name of the S3 bucket where the YAML template will be uploaded.
- Also, configure the AWS credentials using AWS CLI, by giving command : aws configure
P.S.: If you wish to run script multiple times, you will have to clean the resources as same name resource would have been created in your account and it would throw error as Stack creation failed.