ec2-autoscale-group
cloudposse/ec2-autoscale-group/aws
Terraform module to provision Auto Scaling Group and Launch Template on AWS
Terraform module to provision Auto Scaling Group and Launch Template on AWS. The module also creates AutoScaling Policies and CloudWatch Metric Alarms to monitor CPU utilization on the EC2 instances and scale the number of instance in the AutoScaling Group up or down. If you don't want to use the provided functionality, or want to provide your own policies, disable it by setting the variable autoscaling_policies_enabled to false. At present, although you can set the created AutoScaling Policy type to any legal value, in practice only SimpleScaling is supported. To use a StepScaling or TargetTrackingScaling policy, create it yourself and then pass it in the alarm_actions field of custom_alarms. > [!TIP] > #### 👽 Use Atmos with Terraform > Cloud Posse uses atmos to easily orchestrate multipl
| Name | Type | Description | Default |
|---|---|---|---|
| min_size | number | The minimum size of the autoscale group | required |
| name | string | ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. Thi | null |
| attributes | list(string) | ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, | [] |
| iam_instance_profile_name | string | The IAM instance profile name to associate with launched instances | "" |
| ebs_optimized | bool | If true, the launched EC2 instance will be EBS-optimized | false |
| health_check_type | string | Controls how health checking is done. Valid values are `EC2` or `ELB` | "EC2" |
| service_linked_role_arn | string | The ARN of the service-linked role that the ASG will use to call other AWS servi | "" |
| image_id | string | The EC2 image ID to launch | "" |
| scale_down_policy_type | string | The scaling policy type. Currently only `SimpleScaling` is supported | "SimpleScaling" |
| id_length_limit | number | Limit `id` to this many characters (minimum 6). Set to `0` for unlimited length. | null |
| update_default_version | bool | Whether to update Default version of Launch template each update | false |
| label_key_case | string | Controls the letter case of the `tags` keys (label names) for tags generated by | null |
| key_name | string | The SSH key name that should be used for the instance | "" |
| user_data | string | The cleartext user data to be Base64-encoded to provide when launching the insta | "" |
| enable_monitoring | bool | Enable/disable detailed monitoring | true |
| protect_from_scale_in | bool | Allows setting instance protection. The autoscaling group will not select instan | false |
| scale_up_scaling_adjustment | number | The number of instances by which to scale. `scale_up_adjustment_type` determines | 1 |
| tag_specifications_resource_types | set(string) | List of tag specification resource types to tag. Valid values are instance, volu | [
"instance",
"volume"
] |
| tags | map(string) | Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). Neither the tag keys nor the t | {} |
| label_order | list(string) | The order in which the labels (ID elements) appear in the `id`. Defaults to ["na | null |
| scale_up_cooldown_seconds | number | The amount of time, in seconds, after a scaling activity completes and before th | 300 |
| … and 10 more inputs | |||
autoscaling_group_tags — A list of tag settings associated with the AutoScaling Groupautoscaling_group_arn — ARN of the AutoScaling Groupautoscaling_group_min_size — The minimum size of the autoscale groupautoscaling_group_max_size — The maximum 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 healthautoscaling_policy_scale_down_arn — ARN of the AutoScaling policy scale downlaunch_template_id — The ID of the launch templatelaunch_template_arn — The ARN of the launch templateautoscaling_group_id — The AutoScaling Group idautoscaling_group_name — The AutoScaling Group nameautoscaling_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 doneautoscaling_policy_scale_up_arn — ARN of the AutoScaling policy scale upTerraform Module to define a consistent naming convention by (namespace, stage,
Terraform module for building and deploying Next.js apps to AWS. Supports SSR (L
Terraform module for provisioning an EKS cluster
Terraform module to generate well-formed JSON documents (container definitions)