How to write a custom check for the same configuration block defined multiple times #1832
Unanswered
aleksandary
asked this question in
Help and suppports
Replies: 1 comment
-
I don't think anything like this exists in the available matchspecs. I can have a look at what would make sense to add. Another option is to write the check in Rego which might give quicker results |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello guys,
I am trying to write a custom check when we have the same configuration block defined multiple times (see below) and it seems that I need a little help with this one.
So the Terraform code looks like this:
I am trying to create the custom check to check if we have a listener block with a lb_protocol value
http
and if yes to check if there is a second listener block with lb_protocol valuehttps
.I have searched in the documentation, the discussions here but didn't find anything similar.
Would it be possible to configure a such check?
Thank you in advance.
Best regards,
Aleksandar Yosifov
Beta Was this translation helpful? Give feedback.
All reactions