Skip to content

TechHoldingLLC/terraform-aws-ec2

Repository files navigation

Requirements

Name Version
aws >= 4.55

Providers

Name Version
aws >= 4.55

Modules

No modules.

Resources

Name Type
aws_dlm_lifecycle_policy.snapshot_ec2 resource
aws_eip.eip resource
aws_iam_role.dlm_lifecycle resource
aws_iam_role_policy.dlm_lifecycle resource
aws_instance.ec2 resource
aws_iam_policy_document.dlm_lifecycle_policy data source
aws_iam_policy_document.dlm_lifecycle_trust_policy data source

Inputs

Name Description Type Default Required
ami_id EC2 AMI id string n/a yes
disable_api_termination Termination protection bool true no
ebs_block_device EBS block device volume list [] no
ebs_optimized EBS optimization bool null no
eip Create elastic ip flag bool false no
enable_volume_tags Whether to enable volume tags (if enabled it conflicts with root_block_device/ebs_block_device tags) bool true no
instance_type Instance type string "t3.nano" no
key_name Instance key-pair name string "" no
name Instance name for tag string n/a yes
root_block_device Customize details about the root block device of the instance. See Block Devices below for details list(any) [] no
security_group_ids Additional security groups or dont want to use default vpc security group and configure specific security group for instance list(any) n/a yes
snapshot_schedule_rule Snapshot creation rule any {} no
source_dest_check Source destination check bool true no
subnet EC2 subnet group string null no
tags Tags map(any) {} no
user_data EC2 user data or cloud init script string "" no
vpc_id VPC id string null no

Outputs

Name Description
instance_id n/a
network_interface_id n/a
private_ip n/a
public_ip n/a

License

Apache 2 Licensed. See LICENSE for full details.