description="List of private DNS names assigned to the instances. Can only be used inside the Amazon EC2, and only available if you've enabled DNS hostnames for your VPC"
description="List of private DNS names assigned to the instances. Can only be used inside the Amazon EC2, and only available if you've enabled DNS hostnames for your VPC"
value=["${local.this_private_dns}"]
value=local.this_private_dns
}
}
output"private_ip"{
output"private_ip"{
description="List of private IP addresses assigned to the instances"
description="List of private IP addresses assigned to the instances"
value=["${local.this_private_ip}"]
value=local.this_private_ip
}
}
output"security_groups"{
output"security_groups"{
description="List of associated security groups of instances"
description="List of associated security groups of instances"
value=["${local.this_security_groups}"]
value=local.this_security_groups
}
}
output"vpc_security_group_ids"{
output"vpc_security_group_ids"{
description="List of associated security groups of instances, if running in non-default VPC"
description="List of associated security groups of instances, if running in non-default VPC"
value=["${local.this_vpc_security_group_ids}"]
value=local.this_vpc_security_group_ids
}
}
output"subnet_id"{
output"subnet_id"{
description="List of IDs of VPC subnets of instances"
description="List of IDs of VPC subnets of instances"
value=["${local.this_subnet_id}"]
value=local.this_subnet_id
}
}
output"credit_specification"{
output"credit_specification"{
description="List of credit specification of instances"
description="List of credit specification of instances"
description="Shutdown behavior for the instance"# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#Using_ChangingInstanceInitiatedShutdownBehavior
description="Shutdown behavior for the instance"# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#Using_ChangingInstanceInitiatedShutdownBehavior
type=string
default=""
default=""
}
}
variable"instance_type"{
variable"instance_type"{
description="The type of instance to start"
description="The type of instance to start"
type=string
}
}
variable"key_name"{
variable"key_name"{
description="The key name to use for the instance"
description="The key name to use for the instance"
type=string
default=""
default=""
}
}
variable"monitoring"{
variable"monitoring"{
description="If true, the launched EC2 instance will have detailed monitoring enabled"
description="If true, the launched EC2 instance will have detailed monitoring enabled"
type=bool
default=false
default=false
}
}
variable"vpc_security_group_ids"{
variable"vpc_security_group_ids"{
description="A list of security group IDs to associate with"
description="A list of security group IDs to associate with"
type="list"
type=list(string)
}
}
variable"subnet_id"{
variable"subnet_id"{
description="The VPC Subnet ID to launch in"
description="The VPC Subnet ID to launch in"
type=string
default=""
default=""
}
}
variable"subnet_ids"{
variable"subnet_ids"{
description="A list of VPC Subnet IDs to launch in"
description="A list of VPC Subnet IDs to launch in"
type=list(string)
default=[]
default=[]
type="list"
}
}
variable"associate_public_ip_address"{
variable"associate_public_ip_address"{
description="If true, the EC2 instance will have associated public IP address"
description="If true, the EC2 instance will have associated public IP address"
type=bool
default=false
default=false
}
}
variable"private_ip"{
variable"private_ip"{
description="Private IP address to associate with the instance in a VPC"
description="Private IP address to associate with the instance in a VPC"
type=string
default=""
default=""
}
}
variable"source_dest_check"{
variable"source_dest_check"{
description="Controls if traffic is routed to the instance when the destination address does not match the instance. Used for NAT or VPNs."
description="Controls if traffic is routed to the instance when the destination address does not match the instance. Used for NAT or VPNs."
type=bool
default=true
default=true
}
}
variable"user_data"{
variable"user_data"{
description="The user data to provide when launching the instance"
description="The user data to provide when launching the instance"
type=string
default=""
default=""
}
}
variable"iam_instance_profile"{
variable"iam_instance_profile"{
description="The IAM Instance Profile to launch the instance with. Specified as the name of the Instance Profile."
description="The IAM Instance Profile to launch the instance with. Specified as the name of the Instance Profile."
type=string
default=""
default=""
}
}
variable"ipv6_address_count"{
variable"ipv6_address_count"{
description="A number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet."
description="A number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet."
type=number
default=0
default=0
}
}
variable"ipv6_addresses"{
variable"ipv6_addresses"{
description="Specify one or more IPv6 addresses from the range of the subnet to associate with the primary network interface"
description="Specify one or more IPv6 addresses from the range of the subnet to associate with the primary network interface"
type=list(string)
default=[]
default=[]
}
}
variable"tags"{
variable"tags"{
description="A mapping of tags to assign to the resource"
description="A mapping of tags to assign to the resource"
type=map(string)
default={}
default={}
}
}
variable"volume_tags"{
variable"volume_tags"{
description="A mapping of tags to assign to the devices created by the instance at launch time"
description="A mapping of tags to assign to the devices created by the instance at launch time"
type=map(string)
default={}
default={}
}
}
variable"root_block_device"{
variable"root_block_device"{
description="Customize details about the root block device of the instance. See Block Devices below for details"
description="Customize details about the root block device of the instance. See Block Devices below for details"
type=list(map(string))
default=[]
default=[]
}
}
variable"ebs_block_device"{
variable"ebs_block_device"{
description="Additional EBS block devices to attach to the instance"
description="Additional EBS block devices to attach to the instance"
type=list(map(string))
default=[]
default=[]
}
}
variable"ephemeral_block_device"{
variable"ephemeral_block_device"{
description="Customize Ephemeral (also known as Instance Store) volumes on the instance"
description="Customize Ephemeral (also known as Instance Store) volumes on the instance"
type=list(map(string))
default=[]
default=[]
}
}
variable"network_interface"{
variable"network_interface"{
description="Customize network interfaces to be attached at instance boot time"
description="Customize network interfaces to be attached at instance boot time"
type=list(map(string))
default=[]
default=[]
}
}
variable"cpu_credits"{
variable"cpu_credits"{
description="The credit option for CPU usage (unlimited or standard)"
description="The credit option for CPU usage (unlimited or standard)"
type=string
default="standard"
default="standard"
}
}
variable"use_num_suffix"{
variable"use_num_suffix"{
description="Always append numerical suffix to instance name, even if instance_count is 1"
description="Always append numerical suffix to instance name, even if instance_count is 1"