ISO 8601 DURATION - Terraform Validation
This is made to validate an ISO 8601 input in a Terraform variable validation block:
validation {
condition = can(regex("^P(\\d+Y)?(\\d+M)?(\\d+D)?(T(\\d+H)?(\\d+M)?(\\d+S)?)?$", var.value))
error_message = "The value must be a valid ISO 8601 duration string representing time. (e.g. PT...
Submitted by anonymous - 5 days ago