Merge pull request #8629 from ProcessOut/scaleway-security_group_rule-port-documentation
provider/scaleway: Document ports in security group rules properly
This commit is contained in:
commit
f4a7740beb
|
@ -60,7 +60,7 @@ resource "scaleway_security_group_rule" "http_accept" {
|
||||||
direction = "inbound"
|
direction = "inbound"
|
||||||
ip_range = "0.0.0.0/0"
|
ip_range = "0.0.0.0/0"
|
||||||
protocol = "TCP"
|
protocol = "TCP"
|
||||||
dest_port_from = 80
|
port = 80
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "scaleway_security_group_rule" "https_accept" {
|
resource "scaleway_security_group_rule" "https_accept" {
|
||||||
|
@ -70,7 +70,7 @@ resource "scaleway_security_group_rule" "https_accept" {
|
||||||
direction = "inbound"
|
direction = "inbound"
|
||||||
ip_range = "0.0.0.0/0"
|
ip_range = "0.0.0.0/0"
|
||||||
protocol = "TCP"
|
protocol = "TCP"
|
||||||
dest_port_from = 443
|
port = 443
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -26,7 +26,7 @@ resource "scaleway_security_group_rule" "smtp_drop_1" {
|
||||||
direction = "inbound"
|
direction = "inbound"
|
||||||
ip_range = "0.0.0.0/0"
|
ip_range = "0.0.0.0/0"
|
||||||
protocol = "TCP"
|
protocol = "TCP"
|
||||||
dest_port_from = 25
|
port = 25
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -39,10 +39,9 @@ The following arguments are supported:
|
||||||
* `direction` - (Required) direction of rule (`inbound`, `outbound`)
|
* `direction` - (Required) direction of rule (`inbound`, `outbound`)
|
||||||
* `ip_range` - (Required) ip_range of rule
|
* `ip_range` - (Required) ip_range of rule
|
||||||
* `protocol` - (Required) protocol of rule (`ICMP`, `TCP`, `UDP`)
|
* `protocol` - (Required) protocol of rule (`ICMP`, `TCP`, `UDP`)
|
||||||
* `dest_port_from` - (Optional) port range from
|
* `port` - (Optional) port of the rule
|
||||||
* `dest_port_to` - (Optional) port from to
|
|
||||||
|
|
||||||
Field `action`, `direction`, `ip_range`, `protocol`, `dest_port_from`, `dest_port_to` are editable.
|
Fields `action`, `direction`, `ip_range`, `protocol`, `port` are editable.
|
||||||
|
|
||||||
## Attributes Reference
|
## Attributes Reference
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue