Skip to content

Commit 279f7cb

Browse files
committed
update sysdig_ip_filters_settings documentation
1 parent 876e075 commit 279f7cb

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

sysdig/resource_sysdig_ip_filters_settings.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ func resourceSysdigIPFiltersSettingsRead(ctx context.Context, d *schema.Resource
4242
}
4343

4444
func resourceSysdigIPFiltersSettingsCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
45-
if d.Id() != "" {
46-
return diag.Errorf("IP filter settings resource already exists, cannot create another one")
47-
}
4845

4946
d.SetId("ip_filters_settings_id") // It's singleton resource so we use a fixed ID
5047

sysdig/resource_sysdig_ip_filters_settings_test.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ func TestAccSysdigIpFiltersSettings_fullLifecycle(t *testing.T) {
2222
Steps: []resource.TestStep{
2323
{
2424
// Create resource
25-
Config: configBasic(true),
26-
Check: resource.ComposeTestCheckFunc(
27-
resource.TestCheckResourceAttr("sysdig_ip_filters_settings.test", "ip_filtering_enabled", "true"),
28-
),
29-
},
30-
{
31-
// Update resource
3225
Config: configBasic(false),
3326
Check: resource.ComposeTestCheckFunc(
3427
resource.TestCheckResourceAttr("sysdig_ip_filters_settings.test", "ip_filtering_enabled", "false"),

website/docs/r/ip_filters_settings.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1+
---
2+
subcategory: "Sysdig Platform"
3+
layout: "sysdig"
4+
page_title: "Sysdig: sysdig_ip_filters_settings"
5+
description: |-
6+
Creates a IP filters settings in Sysdig.
7+
---
8+
19
# Resource: sysdig_ip_filters_settings
210

311
Configures settings for IP filters (`sysdig_ip_filter` resource) which can be used to restrict access to the Sysdig platform.
412
Currently, there is only one setting available: `ip_filtering_enabled` which enables or disables the IP filtering feature. To enable the feature, at least one IP range must be defined in the `sysdig_ip_filter` resource.
513

614
> **Warning**
7-
> This resource is global and is allowed to have only one instance per customer
15+
> This resource is global and is allowed to have only one instance per customer.
16+
> Please verify the IP ranges before enabling the feature, ensuring you include the IP range you are using. Failure to include your current IP range will block your access to Sysdig until you connect from an approved IP range.
817
918
The `sysdig_ip_filters_settings` behaves differently from normal resources, in that Terraform does not destroy this resource.
1019
On resource destruction, Terraform performs no actions in Sysdig.

0 commit comments

Comments
 (0)