Skip to content

Commit 89f67e6

Browse files
committed
add docs
1 parent 5f1aabc commit 89f67e6

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

docs/resources/vpc_acl.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
subcategory: "VPC"
3+
page_title: "Scaleway: scaleway_vpc_acl"
4+
---
5+
6+
# Resource: scaleway_vpc_acl
7+
8+
Creates and manages Scaleway VPC ACLs.
9+
10+
## Example Usage
11+
12+
### Basic
13+
14+
```terraform
15+
resource "scaleway_vpc" "vpc01" {
16+
name = "tf-vpc-acl"
17+
}
18+
19+
resource "scaleway_vpc_acl" "acl01" {
20+
vpc_id = scaleway_vpc.vpc01.id
21+
is_ipv6 = false
22+
rules {
23+
protocol = "TCP"
24+
src_port_low = 0
25+
src_port_high = 0
26+
dst_port_low = 80
27+
dst_port_high = 80
28+
source = "0.0.0.0/0"
29+
destination = "0.0.0.0/0"
30+
description = "Allow HTTP traffic from any source"
31+
action = "accept"
32+
}
33+
default_policy = "drop"
34+
}
35+
```
36+
37+
## Argument Reference
38+
39+
The following arguments are supported:
40+
41+
- `vpc_id` - (Required) The VPC ID the ACL belongs to.
42+
- `default_policy` - (Required) The action to take for packets which do not match any rules.
43+
- `is_ipv6` - (Optional) Defines whether this set of ACL rules is for IPv6 (false = IPv4). Each Network ACL can have rules for only one IP type.
44+
- `rules` - (Optional) The list of Network ACL rules.
45+
- `protocol` - (Optional) The protocol to which this rule applies. Default value: ANY.
46+
- `source` - (Optional) The Source IP range to which this rule applies (CIDR notation with subnet mask).
47+
- `src_port_low` - (Optional) The starting port of the source port range to which this rule applies (inclusive).
48+
- `src_port_high` - (Optional) The ending port of the source port range to which this rule applies (inclusive).
49+
- `destination` - (Optional) The destination IP range to which this rule applies (CIDR notation with subnet mask).
50+
- `dst_port_low` - (Optional) The starting port of the destination port range to which this rule applies (inclusive).
51+
- `dst_port_high` - (Optional) The ending port of the destination port range to which this rule applies (inclusive).
52+
- `action` - (Optional) The policy to apply to the packet.
53+
- `description` - (Optional) The rule description.
54+
- `region` - (Defaults to [provider](../index.md#region) `region`) The [region](../guides/regions_and_zones.md#regions) of the ACL.
55+
56+
## Attributes Reference
57+
58+
In addition to all arguments above, the following attributes are exported:
59+
60+
- `id` - The ID of the ACL.
61+
-
62+
~> **Important:** ACLs' IDs are [regional](../guides/regions_and_zones.md#resource-ids), which means they are of the form `{region}/{id}`, e.g. `fr-par/11111111-1111-1111-1111-111111111111
63+
64+
## Import
65+
66+
ACLs can be imported using `{region}/{id}`, e.g.
67+
68+
```bash
69+
terraform import scaleway_vpc_acl.main fr-par/11111111-1111-1111-1111-111111111111
70+
```

0 commit comments

Comments
 (0)