autoscaling

devops-workflow/autoscaling/aws

Terraform Module HCL AWS ⏱ stale 7y 3mo

Terraform module which creates Auto Scaling resources on AWS

Install

module "autoscaling" {
source = "devops-workflow/autoscaling/aws"
version = "3.2.1"
}
⭐ Source on GitHub 📦 Registry page

README

AWS Auto Scaling Group (ASG) Terraform module ![CircleCI](https://circleci.com/gh/devops-workflow/terraform-aws-autoscaling/tree/master) ![Github release](https://github.com/devops-workflow/terraform-aws-autoscaling/releases) 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)

NameTypeDescriptionDefault
environmentanyEnvironment (ex: `dev`, `qa`, `stage`, `prod`). (Second or top level namespace. required
instance_typeanyThe size of instance to launch required
desired_capacityanyThe number of Amazon EC2 instances that should be running in the group required
image_idanyThe EC2 image ID to launch required
vpc_zone_identifieranyA list of subnet IDs to launch resources in required
security_groupsanyA list of security group IDs to assign to the launch configuration required
max_sizeanyThe maximum size of the auto scale group required
min_sizeanyThe minimum size of the auto scale group required
health_check_typeanyControls how health checking is done. Values are - EC2 and ELB required
delimiteranyDelimiter to be used between `name`, `namespaces`, `attributes`, etc."-"
load_balancersanyA list of elastic load balancer names to add to the autoscaling group names[]
scaling_policy_scaling_in_cooldownanyThe amount of time, in seconds, after a scaling activity completes and before th3000
protect_from_scale_inanyAllows setting instance protection. The autoscaling group will not select instanfalse
scaling_policy_low_cpu_thresholdanyThe value against which the specified statistic is compared20
health_check_grace_periodanyTime (in seconds) after instance comes into service before checking health300
min_elb_capacityanySetting this causes Terraform to wait for this number of instances to show up he0
organizationanyOrganization name (Top level namespace)""
teamanyTAG: Department/team of people responsible for service"UNDEF-ASG"
user_dataanyThe user data to provide when launching the instance" "
default_cooldownanyThe amount of time, in seconds, after a scaling activity completes before anothe300
placement_groupanyThe name of the placement group into which you'll launch your instances, if any""
namespace-envanyPrefix name with the environment. If true, format is: <env>-<name>true
lc_nameanyOverride launch configuration prefix name""
spot_priceanyThe price to use for reserving spot instances0
launch_configurationanyThe name of the launch configuration to use (if it is created outside of this mo""
suspended_processesanyA list of processes to suspend for the AutoScaling Group. The allowed values are[]
scaling_policy_low_cpu_periodanyThe period in seconds over which the specified statistic is applied900
metrics_granularityanyThe granularity to associate with the metrics to collect. The only valid value i"1Minute"
owneranyTAG: 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 activity
autoscaling_group_health_check_type — EC2 or ELB. Controls how health checking is done
launch_configuration_id — The ID of the launch configuration
launch_configuration_name — The name of the launch configuration
autoscaling_group_id — The autoscaling group id
autoscaling_group_name — The autoscaling group name
autoscaling_group_arn — The ARN for this AutoScaling Group
autoscaling_group_max_size — The maximum size of the autoscale group
autoscaling_group_min_size — The minimum size of the autoscale group
autoscaling_group_desired_capacity — The number of Amazon EC2 instances that should be running in the group
autoscaling_group_health_check_grace_period — Time after instance comes into service before checking health

Resources (4)

aws_autoscaling_groupaws_autoscaling_policyaws_cloudwatch_metric_alarmaws_launch_configuration

Details

FrameworkTerraform Module
LanguageHCL
Version3.2.1
Cloud AWS
★ Stars0
Forks3
Total downloads9.9k
Inputs50
Outputs11
Resources4
Examples5
LicenseNOASSERTION
Namespacedevops-workflow
Updated