How can I disable 'master authorized networks config' in GKE cluster using terraform?

Hi,

I am using google_container_cluster resource in Terraform 0.14 version to create a GKE cluster in Google Cloud. Intention is to set master_authorized_networks_config to ‘Disabled’ status which i was able to achieve in command line using ‘–no-enable-master-authorized-networks’ flag.

  1. I tried to leave the ‘cidr_block’ under ‘cidr_blocks’ empty but I am getting an error that it shouldn’t be empty.
  2. If I simply leave master_authorized_networks_config block empty, ‘Master Authorized Networks’ gets enabled which is not intended.

Can someone please help with the solution ?

Thanks,
Sri.