mirror of https://github.com/hashicorp/terraform
The `substr` function allows the `length` parameter to be longer than the remaining characters in the input after the offset. This is useful for when you want to truncate a string to a maximum number of characters. However, the documentation isn't clear on this so I had to do a test deployment to confirm the behaviour after finding the behaviour in an old issue https://github.com/hashicorp/terraform/issues/15751pull/30483/head
parent
d1ac8b71d4
commit
fa8a87fab5
Loading…
Reference in new issue