Ich habe das Terraform-Beispiel in der Doku ausgeführt.
Nun versuche ich, die Source-Adressen der ACL "allow_ssh" zu entfernen.
Wenn ich sources = [] setze, erhalte ich folgende Ausgabe:
Code
OpenTofu will perform the following actions:
# eoscloud_acl_rule.allow_ssh will be updated in-place
~ resource "eoscloud_acl_rule" "allow_ssh" {
~ destinations = [] -> (known after apply)
+ icmp_code = (known after apply)
+ icmp_type = (known after apply)
id = "019fdca4-493a-75dc-bd97-5bc3e0f7ee67"
~ source_ports = [] -> (known after apply)
~ sources = [
- "0.0.0.0/0",
]
~ updated_at = "2026-08-07T15:40:46Z" -> (known after apply)
# (7 unchanged attributes hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
...
eoscloud_acl_rule.allow_ssh: Modifying... [id=019fdca4-493a-75dc-bd97-5bc3e0f7ee67]
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to eoscloud_acl_rule.allow_ssh, provider "provider[\"dl.eoscloud.io/eos/eoscloud\"]" produced an
│ unexpected new value: .sources: new element 0 has appeared.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
Alles anzeigen
Wenn ich sources = [null] setze, erhalte ich folgende Ausgabe:
Code
OpenTofu will perform the following actions:
# eoscloud_acl_rule.allow_ssh will be updated in-place
~ resource "eoscloud_acl_rule" "allow_ssh" {
~ destinations = [] -> (known after apply)
+ icmp_code = (known after apply)
+ icmp_type = (known after apply)
id = "019fdca4-493a-75dc-bd97-5bc3e0f7ee67"
~ source_ports = [] -> (known after apply)
~ sources = [
- "0.0.0.0/0",
+ null,
]
~ updated_at = "2026-08-07T15:40:46Z" -> (known after apply)
# (7 unchanged attributes hidden)
}
...
eoscloud_acl_rule.allow_ssh: Modifying... [id=019fdca4-493a-75dc-bd97-5bc3e0f7ee67]
╷
│ Error: Value Conversion Error
│
│ with eoscloud_acl_rule.allow_ssh,
│ on main.tf line 28, in resource "eoscloud_acl_rule" "allow_ssh":
│ 28: resource "eoscloud_acl_rule" "allow_ssh" {
│
│ An unexpected error was encountered trying to build a value. This is always an error in the provider. Please report the
│ following to the provider developer:
│
│ Received null value, however the target type cannot handle null values. Use the corresponding `types` package type, a
│ pointer type or a custom type that handles null values.
│
│ Path: [0]
│ Target Type: string
│ Suggested `types` Type: basetypes.StringValue
│ Suggested Pointer Type: *string
╵
Alles anzeigen
Mit sources = [""] und sources = ["any"] kommt der Fehler "'Invalid IP format".