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.
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)
~> **Important:** Updates to `cluster_id` will recreate the ACL.
46
+
47
+
-`acl_rules` - A list of ACLs (structure is described below)
48
+
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.
50
+
51
+
The `acl_rules` block supports:
52
+
53
+
-`ip` - (Optional) The IP range to whitelist in [CIDR notation](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing#CIDR_notation)
54
+
55
+
~> **Important:** If the `ip` field is set, `scaleway_ranges` cannot be set to true in the same rule.
56
+
57
+
-`scaleway_ranges` - (Optional) Allow access to cluster from all Scaleway ranges as defined in https://www.scaleway.com/en/docs/console/account/reference-content/scaleway-network-information/#ip-ranges-used-by-scaleway.
58
+
Only one rule with this field set to true can be added.
59
+
60
+
~> **Important:** If the `scaleway_ranges` field is set to true, the `ip` field cannot be set on the same rule.
61
+
62
+
-`description` - (Optional) A text describing this rule.
63
+
64
+
## Attributes Reference
65
+
66
+
In addition to all arguments above, the following attributes are exported:
67
+
68
+
-`acl_rules.0.id` - The ID of each ACL rule.
69
+
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`
71
+
72
+
## Import
73
+
74
+
Kubernetes ACLs can be imported using the `{region}/{cluster-id}`, e.g.
Description: "Allow access to cluster from all Scaleway ranges as defined in https://www.scaleway.com/en/docs/console/account/reference-content/scaleway-network-information/#ip-ranges-used-by-scaleway. Only one rule with this field set to true can be added",
67
+
Description: "Allow access to cluster from all Scaleway ranges as defined in https://www.scaleway.com/en/docs/console/account/reference-content/scaleway-network-information/#ip-ranges-used-by-scaleway. Only one rule with this field set to true can be added.",
62
68
},
63
69
"description": {
64
70
Type: schema.TypeString,
@@ -143,7 +149,8 @@ func ResourceACLRead(ctx context.Context, d *schema.ResourceData, m interface{})
0 commit comments