/terraform-aws-ec2-worker

Terraform module that creates an EC2 worker instance and related resources.

Primary LanguageHCLMIT LicenseMIT

Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

No modules.

Resources

Name Type
aws_instance.worker resource
aws_security_group.worker_sg resource
aws_security_group_rule.worker_egress resource
aws_security_group_rule.worker_ssh_ingress resource

Inputs

Name Description Type Default Required
ami_id The ID of the worker instance AMI. string n/a yes
bastion_sg_id The ID of the bastion Security Group. string n/a yes
block_devices A list of block devices attached to the worker instance.
list(object({
name = string
snapshot_id = string
volume_size = number
}))
[] no
instance_profile_name The name of the instance profile attached to the worker instance. string n/a yes
name The name of the worker. string n/a yes
subnet_id The ID of the subnet into which the worker instance is placed. string n/a yes
user_data_template The template file used to generate user data injected into the worker instance. string n/a yes
vpc_id The ID of the VPC into which the worker instance is placed. string n/a yes

Outputs

Name Description
instance_id The ID of the worker EC2 instance.
sg_id The ID of the worker Security Group.