I am working with a resource ( google_monitoring_uptime_check_config) which only allows one of these blocks to be present.
Either http_check or tcp_check.
I tried setting them both up as a dynamic block, but the terraform plan sees them both as being there, and gives this error.
Error: "tcp_check": only one of http_check,tcp_check
can be specified, but http_check,tcp_check
If you leave both out, you get this error.
Error: "tcp_check": one of http_check,tcp_check
must be specified
How can I build one module, which will complete only the block I need?