module
Georgii-M/module/nat
Terraform Module
HCL
NAT
This repo contains terraform modules ready-to-use in production
Install
module "module" {
source = "Georgii-M/module/nat"
version = "0.0.1"
}
Inputs (43)
| Name | Type | Description | Default |
|---|---|---|---|
| capacity_reservation_specification | any | Describes an instance's Capacity Reservation targeting option | required |
| ipv6_address_count | number | A number of IPv6 addresses to associate with the primary network interface. Amaz | required |
| ipv6_addresses | list(string) | Specify one or more IPv6 addresses from the range of the subnet to associate wit | required |
| launch_template | map(string) | Specifies a Launch Template to configure the instance. Parameters configured on | required |
| vpc_security_group_ids | list(string) | A list of security group IDs to associate with | required |
| cpu_core_count | number | Sets the number of CPU cores for an instance. | required |
| associate_public_ip_address | bool | Whether to associate a public IP address with an instance in a VPC | required |
| availability_zone | string | AZ to start the instance in | required |
| cpu_credits | string | The credit option for CPU usage (unlimited or standard) | required |
| get_password_data | bool | If true, wait for password data to become available and retrieve it. | required |
| host_id | string | ID of a dedicated host that the instance will be assigned to. Use when an instan | required |
| placement_group | string | The Placement Group to start the instance in | required |
| secondary_private_ips | list(string) | A list of secondary private IPv4 addresses to assign to the instance's primary n | required |
| user_data_base64 | string | Can be used instead of user_data to pass base64-encoded binary data directly. Us | required |
| instance_initiated_shutdown_behavior | string | Shutdown behavior for the instance. Amazon defaults this to stop for EBS-backed | required |
| tenancy | string | The tenancy of the instance (if the instance is running in a VPC). Available val | required |
| disable_api_termination | bool | If true, enables EC2 Instance Termination Protection | required |
| key_name | string | Key name of the Key Pair to use for the instance; which can be managed using the | required |
| user_data | string | The user data to provide when launching the instance. Do not pass gzip-compresse | required |
| ebs_optimized | bool | If true, the launched EC2 instance will be EBS-optimized | required |
| ephemeral_block_device | list(map(string)) | Customize Ephemeral (also known as Instance Store) volumes on the instance | [] |
| metadata_options | map(string) | Customize the metadata options of the instance | {} |
| tags | map(string) | A mapping of tags to assign to the resource | {} |
| volume_tags | map(string) | A mapping of tags to assign to the devices created by the instance at launch tim | {} |
| create | bool | Whether to create an instance | true |
| ebs_block_device | list(map(string)) | Additional EBS block devices to attach to the instance | [] |
| enable_volume_tags | bool | Whether to enable volume tags (if enabled it conflicts with root_block_device ta | true |
| priv_route_table | string | ID of the private route table | "" |
| allocation_id | string | Elastic IP allocation id to be used for nat gateway | "" |
| ami | string | ID of AMI to use for the instance | "" |
| instance_type | string | The type of instance to start | "t3.micro" |
| source_dest_check | bool | Controls if traffic is routed to the instance when the destination address does | false |
| timeouts | map(string) | Define maximum timeout for creating, updating, and deleting EC2 instance resourc | {} |
| name | string | Name to be used on EC2 instance created | "" |
| network_interface | list(map(string)) | Customize network interfaces to be attached at instance boot time | [] |
| root_block_device | list(any) | Customize details about the root block device of the instance. See Block Devices | [] |
| monitoring | bool | If true, the launched EC2 instance will have detailed monitoring enabled | false |
| … and 3 more inputs | |||
Outputs (11)
public_dns — The public DNS name assigned to the instance. For EC2-VPC, this is only available if you've enabled public_ip — The public IP address assigned to the instance, if applicable. NOTE: If you are using an aws_eip wittags_all — A map of tags assigned to the resource, including those inherited from the provider default_tags conprimary_network_interface_id — The ID of the instance's primary network interfaceprivate_dns — The private DNS name assigned to the instance. Can only be used inside the Amazon EC2, and only avaiid — The ID of the instancearn — The ARN of the instancecapacity_reservation_specification — Capacity reservation specification of the instanceinstance_state — The state of the instance. One of: `pending`, `running`, `shutting-down`, `terminated`, `stopping`, outpost_arn — The ARN of the Outpost the instance is assigned topassword_data — Base-64 encoded encrypted password data for the instance. Useful for getting the administrator passwResources (5)
aws_eipaws_eip_associationaws_instanceaws_nat_gatewayaws_route
Details
FrameworkTerraform Module
LanguageHCL
Version0.0.1
Cloud NAT
★ Stars0
Forks1
Total downloads713
Inputs43
Outputs11
Resources5
NamespaceGeorgii-M
Updated