Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when default_security_list is empty #35

Open
hrvolapeter opened this issue Jun 24, 2024 · 0 comments
Open

error when default_security_list is empty #35

hrvolapeter opened this issue Jun 24, 2024 · 0 comments

Comments

@hrvolapeter
Copy link
Member

Getting error with folowing configuration:

 "default_security_list": {
              "display_name": "sl-fra-oe1-ocvs",
              "egress_rules": [],
              "ingress_rules": []
 },

errors with:

Error: Resource precondition failed

  on .terraform/modules/oci_lz_orchestrator.oci_lz_network/default_security_lists.tf line 172, in resource "oci_core_default_security_list" "these" 

 172:       condition = length([for ir in each.value.ingress_rules : ir if coalesce(ir.dst_port_min, local.TCP_PORT_MIN) <= coalesce(ir.dst_port_max, local.TCP_PORT_MAX)]) > 0

    ├────────────────

    │ each.value.ingress_rules is empty list of object

    │ local.TCP_PORT_MAX is 65535

    │ local.TCP_PORT_MIN is 1

VALIDATION FAILURE: Invalid configuration in Security List

[CUSTOM-DEFAULT-SEC-LIST-VCN-FRA-OE1-PLATFORM-OCVS-KEY]: dst_port_min [] must

be less than or equal to dst_port_max [].

seems like orchestrator doesn't expect empty list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant