Skip to main content
The self-managed-node-group sub-module manages EC2 Auto Scaling Groups for use as EKS worker nodes. It is invoked for each entry in the self_managed_node_groups map on the root module.

Inputs

General

Autoscaling Group

AMI and Instance

Launch Template

User Data

IAM Role

Access Entry

Security Group


Outputs

Launch Template

launch_template_id
string
The ID of the launch template.
launch_template_arn
string
The ARN of the launch template.
launch_template_latest_version
number
The latest version of the launch template.
launch_template_name
string
The name of the launch template.

Autoscaling Group

autoscaling_group_arn
string
The ARN for this autoscaling group.
autoscaling_group_id
string
The autoscaling group id.
autoscaling_group_name
string
The autoscaling group name.
autoscaling_group_min_size
number
The minimum size of the autoscaling group.
autoscaling_group_max_size
number
The maximum size of the autoscaling group.
autoscaling_group_desired_capacity
number
The number of Amazon EC2 instances that should be running in the group.
autoscaling_group_default_cooldown
number
Time between a scaling activity and the succeeding scaling activity.
autoscaling_group_health_check_grace_period
number
Time after instance comes into service before checking health.
autoscaling_group_health_check_type
string
EC2 or ELB. Controls how health checking is done.
autoscaling_group_availability_zones
list(string)
The availability zones of the autoscaling group.
autoscaling_group_vpc_zone_identifier
set(string)
The VPC zone identifier.

IAM Role

iam_role_name
string
The name of the IAM role.
iam_role_arn
string
The Amazon Resource Name (ARN) specifying the IAM role.
iam_role_unique_id
string
Stable and unique string identifying the IAM role.

IAM Instance Profile

iam_instance_profile_arn
string
ARN assigned by AWS to the instance profile.
iam_instance_profile_id
string
Instance profile’s ID.
iam_instance_profile_unique
string
Stable and unique string identifying the IAM instance profile.

Access Entry

access_entry_arn
string
Amazon Resource Name (ARN) of the Access Entry.

Security Group

security_group_arn
string
Amazon Resource Name (ARN) of the security group.
security_group_id
string
ID of the security group.

Additional

image_id
string
ID of the image.
user_data
string
Base64 encoded user data.

Build docs developers (and LLMs) love