You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creates and manages Scaleway Kubernetes cluster authorized IPs.
8
+
Creates and manages Scaleway Kubernetes Cluster authorized IPs.
9
9
For more information, please refer to the [API documentation](https://www.scaleway.com/en/developers/api/kubernetes/#path-access-control-list-add-new-acls)
10
10
11
+
~> **Important:** When creating a Cluster, it comes with a default ACL rule allowing all ranges `0.0.0.0/0`.
12
+
Defining custom ACLs with Terraform will overwrite this rule, but it will be recreated automatically when deleting the ACL resource.
-`cluster_id` - (Required) UUID of the Cluster. The ID of the cluster is also the ID of the ACL resource as there can only be one per cluster.
44
66
45
67
~> **Important:** Updates to `cluster_id` will recreate the ACL.
46
68
47
-
-`acl_rules` - A list of ACLs (structure is described below)
69
+
-`no_ip_allowed` - (Optional) If set to true, no IP will be allowed and the cluster will be in full-isolation.
70
+
71
+
~> **Important:** This field cannot be set to true if the `acl_rules` is defined.
72
+
73
+
-`acl_rules` - (Optional) A list of ACLs (structure is described below)
48
74
49
-
-`region` - (Defaults to [provider](../index.md#region)`region`) The [region](../guides/regions_and_zones.md#regions) in which the ACL rule should be created.
75
+
~> **Important:** This block cannot be defined if the `no_ip_allowed` field is set to true.
76
+
77
+
-`region` - (Defaults to [provider](../index.md#arguments-reference)`region`) The [region](../guides/regions_and_zones.md#regions) in which the ACL rule should be created.
50
78
51
79
The `acl_rules` block supports:
52
80
@@ -65,9 +93,11 @@ Only one rule with this field set to true can be added.
65
93
66
94
In addition to all arguments above, the following attributes are exported:
67
95
68
-
-`acl_rules.0.id` - The ID of each ACL rule.
96
+
-`id` - The ID of the ACL resource. It is the same as the ID of the cluster.
97
+
98
+
~> **Important:** Kubernetes 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`
69
99
70
-
~> **Important:** Kubernetes ACL rules' 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`
100
+
-`acl_rules.#.id` - The ID of each individual ACL rule.
0 commit comments