diff --git a/README.md b/README.md index 77d78fc..5ec827b 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ An opinionated Terraform module that can be used to create and manage an VPC in | [bastion\_host\_instance\_type](#input\_bastion\_host\_instance\_type) | The instance type to use for the bastion host. | `string` | `"t2.micro"` | no | | [bastion\_host\_security\_group\_rules](#input\_bastion\_host\_security\_group\_rules) | A list of security group rules to apply to the bastion host. | `list(any)` |
[| no | | [bastion\_host\_ssh\_public\_key](#input\_bastion\_host\_ssh\_public\_key) | If specified, will be used as the public SSH key for the bastion host. | `string` | `""` | no | -| [bastion\_host\_user\_data](#input\_bastion\_host\_user\_data) | The user data to use for the bastion host. | `string` | `[]` | no | +| [bastion\_host\_user\_data](#input\_bastion\_host\_user\_data) | The user data to use for the bastion host. | `list(string)` | `[]` | no | | [bastion\_host\_user\_data\_base64](#input\_bastion\_host\_user\_data\_base64) | The user data to use for the bastion host, base64 encoded. | `string` | `""` | no | | [cidr](#input\_cidr) | The CIDR to be used for the VPC. | `string` | n/a | yes | | [enable\_ipv6](#input\_enable\_ipv6) | Whether to enable the ipv6 stack. | `bool` | `false` | no | diff --git a/variables.tf b/variables.tf index 48d2dff..cd8861e 100644 --- a/variables.tf +++ b/variables.tf @@ -123,7 +123,7 @@ variable "bastion_host_ssh_public_key" { variable "bastion_host_user_data" { default = [] description = "The user data to use for the bastion host." - type = string + type = list(string) } variable "bastion_host_user_data_base64" {
{
"cidr_blocks": [
"0.0.0.0/0"
],
"description": "Allow all outbound traffic",
"from_port": 0,
"protocol": -1,
"to_port": 0,
"type": "egress"
},
{
"cidr_blocks": [
"0.0.0.0/0"
],
"description": "Allow all inbound to SSH",
"from_port": 22,
"protocol": "tcp",
"to_port": 22,
"type": "ingress"
}
]