Charts cannot be downloaded when running terraform apply

When run terraform apply to deploy a helm chart to kubernetes. The issue may appear as Error: could not download chart: failed to download.

To resolve it we need to perform some check:

  1. Make sure that chart version is corrected and download able from chart museum.
  2. Run HELM_DEBUG=1 terraform apply . The flag will show the debug log for apply function.