Skip to content

Commit

Permalink
Specify type to variables (int128#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 authored May 3, 2020
1 parent 2d0f0e3 commit 0aac098
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ No requirements.
| image\_id | AMI of the NAT instance. Default to the latest Amazon Linux 2 | `string` | `""` | no |
| instance\_types | Candidates of spot instance type for the NAT instance. This is used in the mixed instances policy | `list` | <pre>[<br> "t3.nano",<br> "t3a.nano"<br>]</pre> | no |
| key\_name | Name of the key pair for the NAT instance. You can set this to assign the key pair to the NAT instance | `string` | `""` | no |
| name | Name for all the resources as identifier | `any` | n/a | yes |
| name | Name for all the resources as identifier | `string` | n/a | yes |
| private\_route\_table\_ids | List of ID of the route tables for the private subnets. You can set this to assign the each default route to the NAT instance | `list` | `[]` | no |
| private\_subnets\_cidr\_blocks | List of CIDR blocks of the private subnets. The NAT instance accepts connections from this subnets | `any` | n/a | yes |
| public\_subnet | ID of the public subnet to place the NAT instance | `any` | n/a | yes |
| private\_subnets\_cidr\_blocks | List of CIDR blocks of the private subnets. The NAT instance accepts connections from this subnets | `list` | n/a | yes |
| public\_subnet | ID of the public subnet to place the NAT instance | `string` | n/a | yes |
| tags | Tags applied to resources created with this module | `map` | `{}` | no |
| use\_spot\_instance | Whether to use spot or on-demand EC2 instance | `bool` | `true` | no |
| vpc\_id | ID of the VPC | `any` | n/a | yes |
| vpc\_id | ID of the VPC | `string` | n/a | yes |

## Outputs

Expand Down
13 changes: 13 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,55 +1,68 @@
variable "enabled" {
description = "Enable or not costly resources"
type = bool
default = true
}

variable "name" {
description = "Name for all the resources as identifier"
type = string
}

variable "vpc_id" {
description = "ID of the VPC"
type = string
}

variable "public_subnet" {
description = "ID of the public subnet to place the NAT instance"
type = string
}

variable "private_subnets_cidr_blocks" {
description = "List of CIDR blocks of the private subnets. The NAT instance accepts connections from this subnets"
type = list
}

variable "private_route_table_ids" {
description = "List of ID of the route tables for the private subnets. You can set this to assign the each default route to the NAT instance"
type = list
default = []
}

variable "extra_user_data" {
description = "Extra script to run in the NAT instance"
type = string
default = ""
}

variable "image_id" {
description = "AMI of the NAT instance. Default to the latest Amazon Linux 2"
type = string
default = ""
}

variable "instance_types" {
description = "Candidates of spot instance type for the NAT instance. This is used in the mixed instances policy"
type = list
default = ["t3.nano", "t3a.nano"]
}

variable "use_spot_instance" {
description = "Whether to use spot or on-demand EC2 instance"
type = bool
default = true
}

variable "key_name" {
description = "Name of the key pair for the NAT instance. You can set this to assign the key pair to the NAT instance"
type = string
default = ""
}

variable "tags" {
description = "Tags applied to resources created with this module"
type = map
default = {}
}

Expand Down

0 comments on commit 0aac098

Please sign in to comment.