From ab36c4299f640910a181a2e6fe1998a832d68be5 Mon Sep 17 00:00:00 2001 From: Louis-Paul Dareau Date: Fri, 2 Sep 2016 12:10:52 -0400 Subject: [PATCH 1/2] provider/scaleway: Document ports in security group rules properly --- website/source/docs/providers/scaleway/index.html.markdown | 4 ++-- .../providers/scaleway/r/security_group_rule.html.markdown | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/website/source/docs/providers/scaleway/index.html.markdown b/website/source/docs/providers/scaleway/index.html.markdown index cd1d77ab32..c95bdfa540 100644 --- a/website/source/docs/providers/scaleway/index.html.markdown +++ b/website/source/docs/providers/scaleway/index.html.markdown @@ -60,7 +60,7 @@ resource "scaleway_security_group_rule" "http_accept" { direction = "inbound" ip_range = "0.0.0.0/0" protocol = "TCP" - dest_port_from = 80 + port = 80 } resource "scaleway_security_group_rule" "https_accept" { @@ -70,7 +70,7 @@ resource "scaleway_security_group_rule" "https_accept" { direction = "inbound" ip_range = "0.0.0.0/0" protocol = "TCP" - dest_port_from = 443 + port = 443 } ``` diff --git a/website/source/docs/providers/scaleway/r/security_group_rule.html.markdown b/website/source/docs/providers/scaleway/r/security_group_rule.html.markdown index de5f695fb8..e79237808b 100644 --- a/website/source/docs/providers/scaleway/r/security_group_rule.html.markdown +++ b/website/source/docs/providers/scaleway/r/security_group_rule.html.markdown @@ -26,7 +26,7 @@ resource "scaleway_security_group_rule" "smtp_drop_1" { direction = "inbound" ip_range = "0.0.0.0/0" protocol = "TCP" - dest_port_from = 25 + port = 25 } ``` @@ -39,10 +39,9 @@ The following arguments are supported: * `direction` - (Required) direction of rule (`inbound`, `outbound`) * `ip_range` - (Required) ip_range of rule * `protocol` - (Required) protocol of rule (`ICMP`, `TCP`, `UDP`) -* `dest_port_from` - (Optional) port range from -* `dest_port_to` - (Optional) port from to +* `port` - (Optional) port of the rule -Field `action`, `direction`, `ip_range`, `protocol`, `dest_port_from`, `dest_port_to` are editable. +Field `action`, `direction`, `ip_range`, `protocol`, `port` are editable. ## Attributes Reference From 7adcac2d6ca0a2e6bf6689f5ace3314b725ba58d Mon Sep 17 00:00:00 2001 From: Louis-Paul Dareau Date: Fri, 2 Sep 2016 12:16:42 -0400 Subject: [PATCH 2/2] provider/scaleway: Fix a documentation typo --- .../docs/providers/scaleway/r/security_group_rule.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/source/docs/providers/scaleway/r/security_group_rule.html.markdown b/website/source/docs/providers/scaleway/r/security_group_rule.html.markdown index e79237808b..6c737f6d63 100644 --- a/website/source/docs/providers/scaleway/r/security_group_rule.html.markdown +++ b/website/source/docs/providers/scaleway/r/security_group_rule.html.markdown @@ -41,7 +41,7 @@ The following arguments are supported: * `protocol` - (Required) protocol of rule (`ICMP`, `TCP`, `UDP`) * `port` - (Optional) port of the rule -Field `action`, `direction`, `ip_range`, `protocol`, `port` are editable. +Fields `action`, `direction`, `ip_range`, `protocol`, `port` are editable. ## Attributes Reference