autoscaling
devops-workflow/autoscaling/aws
Terraform module which creates Auto Scaling resources on AWS
Install
README
AWS Auto Scaling Group (ASG) Terraform module   Terraform module which creates Auto Scaling resources on AWS. These types of resources are supported: Launch Configuration Auto Scaling Group TODO Update README with changes in this fork Usage ``hcl module "asg" { source = "devops-workflow/autoscaling/aws" name = "service" # Launch configuration lc_name = "example-lc" image_id = "ami-ebd02392" instance_type = "t2.micro" security_groups = ["sg-12345678"] ebs_block_device = [ { device_name = "/dev/xvdz" volume_type = "gp2" volume_size = "50" delete_on_termination = true }, ] root_block_device = [ { volume_size = "50" vo
Inputs (50)
| Name | Type | Description | Default |
|---|---|---|---|
| environment | any | Environment (ex: `dev`, `qa`, `stage`, `prod`). (Second or top level namespace. | required |
| instance_type | any | The size of instance to launch | required |
| desired_capacity | any | The number of Amazon EC2 instances that should be running in the group | required |
| image_id | any | The EC2 image ID to launch | required |
| vpc_zone_identifier | any | A list of subnet IDs to launch resources in | required |
| security_groups | any | A list of security group IDs to assign to the launch configuration | required |
| max_size | any | The maximum size of the auto scale group | required |
| min_size | any | The minimum size of the auto scale group | required |
| health_check_type | any | Controls how health checking is done. Values are - EC2 and ELB | required |
| delimiter | any | Delimiter to be used between `name`, `namespaces`, `attributes`, etc. | "-" |
| load_balancers | any | A list of elastic load balancer names to add to the autoscaling group names | [] |
| scaling_policy_scaling_in_cooldown | any | The amount of time, in seconds, after a scaling activity completes and before th | 3000 |
| protect_from_scale_in | any | Allows setting instance protection. The autoscaling group will not select instan | false |
| scaling_policy_low_cpu_threshold | any | The value against which the specified statistic is compared | 20 |
| health_check_grace_period | any | Time (in seconds) after instance comes into service before checking health | 300 |
| min_elb_capacity | any | Setting this causes Terraform to wait for this number of instances to show up he | 0 |
| organization | any | Organization name (Top level namespace) | "" |
| team | any | TAG: Department/team of people responsible for service | "UNDEF-ASG" |
| user_data | any | The user data to provide when launching the instance | " " |
| default_cooldown | any | The amount of time, in seconds, after a scaling activity completes before anothe | 300 |
| placement_group | any | The name of the placement group into which you'll launch your instances, if any | "" |
| namespace-env | any | Prefix name with the environment. If true, format is: <env>-<name> | true |
| lc_name | any | Override launch configuration prefix name | "" |
| spot_price | any | The price to use for reserving spot instances | 0 |
| launch_configuration | any | The name of the launch configuration to use (if it is created outside of this mo | "" |
| suspended_processes | any | A list of processes to suspend for the AutoScaling Group. The allowed values are | [] |
| scaling_policy_low_cpu_period | any | The period in seconds over which the specified statistic is applied | 900 |
| metrics_granularity | any | The granularity to associate with the metrics to collect. The only valid value i | "1Minute" |
| owner | any | TAG: Owner of the service | "UNDEF-ASG" |
| … and 10 more inputs | |||
Outputs (11)
autoscaling_group_default_cooldown — Time between a scaling activity and the succeeding scaling activityautoscaling_group_health_check_type — EC2 or ELB. Controls how health checking is donelaunch_configuration_id — The ID of the launch configurationlaunch_configuration_name — The name of the launch configurationautoscaling_group_id — The autoscaling group idautoscaling_group_name — The autoscaling group nameautoscaling_group_arn — The ARN for this AutoScaling Groupautoscaling_group_max_size — The maximum size of the autoscale groupautoscaling_group_min_size — The minimum size of the autoscale groupautoscaling_group_desired_capacity — The number of Amazon EC2 instances that should be running in the groupautoscaling_group_health_check_grace_period — Time after instance comes into service before checking healthResources (4)
Details
Similar packages
Azure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,