Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentPoinsaut committed Jul 10, 2024
1 parent d676dd0 commit ec7cd09
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 26 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ No modules.
| <a name="input_gateway_network_cleanup_dhcp"></a> [gateway\_network\_cleanup\_dhcp](#input\_gateway\_network\_cleanup\_dhcp) | Defines whether to clean up attached DHCP configurations (if any, and if not attached to another Gateway Network) | `bool` | `true` | no |
| <a name="input_gateway_network_enable_masquerade"></a> [gateway\_network\_enable\_masquerade](#input\_gateway\_network\_enable\_masquerade) | Defines whether the gateway should masquerade traffic for the attached Private Network (i.e. whether to enable dynamic NAT) | `bool` | `true` | no |
| <a name="input_gateway_reverse_dns"></a> [gateway\_reverse\_dns](#input\_gateway\_reverse\_dns) | Create (reserve) a new flexible IP address that can be used for a Public Gateway in a specified Scaleway Project | `bool` | `false` | no |
| <a name="input_instances"></a> [instances](#input\_instances) | A map of interface and/or instance mac addresses containing their properties | `any` | `{}` | no |
| <a name="input_list_reservations"></a> [list\_reservations](#input\_list\_reservations) | Defines whether to list reservations addresses) | `bool` | `false` | no |
| <a name="input_name"></a> [name](#input\_name) | Name to be used on all the resources as identifier | `string` | `""` | no |
| <a name="input_private_network_ipv4_subnet"></a> [private\_network\_ipv4\_subnet](#input\_private\_network\_ipv4\_subnet) | IPv4 subnet to be used on private network resource | `string` | `"192.168.0.0/24"` | no |
| <a name="input_private_network_name"></a> [private\_network\_name](#input\_private\_network\_name) | Name to be used on private network resource as identifier | `string` | `""` | no |
Expand All @@ -66,7 +64,6 @@ No modules.
| <a name="input_timeouts"></a> [timeouts](#input\_timeouts) | Define maximum timeout for creating, updating, and deleting VPC resources | `map(string)` | `{}` | no |
| <a name="input_vpc_public_gateway_type"></a> [vpc\_public\_gateway\_type](#input\_vpc\_public\_gateway\_type) | Type to be used on gateway resource as default | `string` | `"VPC-GW-S"` | no |
| <a name="input_vpc_tags"></a> [vpc\_tags](#input\_vpc\_tags) | Additional tags for the VPC | `list(string)` | `[]` | no |
| <a name="input_wait_reservations"></a> [wait\_reservations](#input\_wait\_reservations) | Determines whether wait reservations are available | `bool` | `true` | no |
| <a name="input_zones"></a> [zones](#input\_zones) | A list of availability zones in the region | `list(string)` | `[]` | no |

## Outputs
Expand Down
4 changes: 0 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
################################################################################
# VPC
################################################################################
locals {
instances = { for k, v in var.instances : k => v if var.list_reservations }
}

### IP for Public Gateway
resource "scaleway_vpc_public_gateway_ip" "main" {
count = length(var.zones)
Expand Down
19 changes: 0 additions & 19 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,6 @@ variable "zones" {
default = []
}

variable "list_reservations" {
type = bool
default = false
description = "Defines whether to list reservations addresses)"
}


################################################################################
# PUBLIC GATEWAY
################################################################################
Expand Down Expand Up @@ -109,15 +102,3 @@ variable "private_network_ipv4_subnet" {
default = "192.168.0.0/24"
description = "IPv4 subnet to be used on private network resource"
}

variable "instances" {
description = "A map of interface and/or instance mac addresses containing their properties"
type = any
default = {}
}

variable "wait_reservations" {
description = "Determines whether wait reservations are available"
type = bool
default = true
}

0 comments on commit ec7cd09

Please sign in to comment.