diff --git a/.changelog/3358.txt b/.changelog/3358.txt new file mode 100644 index 0000000000..1e2bca7a13 --- /dev/null +++ b/.changelog/3358.txt @@ -0,0 +1,3 @@ +```release-note:bug +resource/cloudflare_access_policy: Fix forcing new access policies when account id is not set through import +``` diff --git a/internal/sdkv2provider/schema_cloudflare_access_policy.go b/internal/sdkv2provider/schema_cloudflare_access_policy.go index c3d282a1a3..3a99d9279b 100644 --- a/internal/sdkv2provider/schema_cloudflare_access_policy.go +++ b/internal/sdkv2provider/schema_cloudflare_access_policy.go @@ -22,14 +22,12 @@ func resourceCloudflareAccessPolicySchema() map[string]*schema.Schema { Description: consts.AccountIDSchemaDescription, Type: schema.TypeString, Optional: true, - ForceNew: true, ConflictsWith: []string{consts.ZoneIDSchemaKey}, }, consts.ZoneIDSchemaKey: { Description: consts.ZoneIDSchemaDescription, Type: schema.TypeString, Optional: true, - ForceNew: true, ConflictsWith: []string{consts.AccountIDSchemaKey}, }, "name": {