'Execute terraform command conditionally by OS type
I am running terraform 0.15. I am using local-exec to run a command. The command needs to run only when the workstation I deploy from is Windows. Needs to skip for non-Windows (mac, linux etc).
Is this something achievable? Appreciate any help.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
