Skip to content

Latest commit

 

History

History

service-asg

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

AutoScaling Group

Provide AutoScaling Group. This module does not define any webservice ingress so is suitable for background processing.

Example

Requirements

No requirements.

Providers

Name Version
aws 3.66.0

Modules

No modules.

Resources

Name Type
aws_autoscaling_group.this resource
aws_cloudwatch_log_group.this resource
aws_iam_instance_profile.this resource
aws_iam_role.this resource
aws_iam_role_policy_attachment.cloudwatch_agent resource
aws_launch_template.this resource
aws_security_group.this resource
aws_security_group_rule.egress resource
aws_kms_key.ebs data source

Inputs

Name Description Type Default Required
additional_user_data User Data script that will be appended to default script string "" no
desired_capacity Desired capacity of ASG number 2 no
environment Environment name, used for naming and tagging string n/a yes
health_check_type Health check type to use for AutoScaling group string "EC2" no
image_id EC2 instance AMI ID any n/a yes
instance_type EC2 instance type string "t3.micro" no
key_name EC2 instance SSH key pair name any n/a yes
max_size Maximum size of ASG number 2 no
min_size Minimum size of ASG number 1 no
product Product name, used for naming and tagging string n/a yes
root_volume_size EC2 instance root volume size (GB) number 10 no
service Service name, used for naming and tagging string n/a yes
vpc_id VPC ID any n/a yes
vpc_subnet_ids VPC Subnet IDS any n/a yes

Outputs

Name Description
this_asg_name AutoScaling Group Name
this_iam_role_arn ARN of IAM role attached to EC2 instances
this_security_group_id ID of Security Group attached to EC2 instances