FEATURES PRICING ABOUT DOCS LOGIN

scaleway_security_group_rule

Provides security group rules. This allows security group rules to be created, updated and deleted. For additional details please refer to API documentation.

Example Usage

resource "scaleway_security_group" "test" {
  name = "test"
  description = "test"
}

resource "scaleway_security_group_rule" "smtp_drop_1" {
  security_group = "${scaleway_security_group.test.id}"

  action = "accept"
  direction = "inbound"
  ip_range = "0.0.0.0/0"
  protocol = "TCP"
  port = 25
}

Argument Reference

The following arguments are supported:

Fields action, direction, ip_range, protocol, port are editable.

Attributes Reference

The following attributes are exported:


See the source of this document at Terraform.io

REQUEST A DEMO