title: Code sample to deploy a Helm chart via API?
body: <p>I am looking for any code example that deploys Helm chart without via CLI call. The reason behind this is:</p>
  
  <ol>
  <li>My company got couple existing pipelines written with AWS CodePipeline / CodeBuild / CodeDeploy. They don't like to investigate more time on re-writing all pipelines.</li>
  <li>My company does not have any plan to maintain extra instance(s) just for deployment.</li>
  <li>AWS CodePipeline could trigger Lambda, and theoretically I could write some Python code to do the job if Helm provides Python client.</li>
  </ol>
  
  <p>Currently I steal Lambda function from this:</p>
  
  <p><a href="https://github.com/aws-samples/aws-kube-codesuite" rel="nofollow noreferrer">https://github.com/aws-samples/aws-kube-codesuite</a></p>
  
  <p>Whereas this does not provide same level features as Helm does. We have to provide our release-name system, template system, etc. In other words, it functions poorly if I have big change on the manifest, and does not handle the first time deployment (means deploying manifest to an empty K8S cluster) Also we use Github, although not really relevant.</p>
  
  <p>For python client of Helm chart, the best I could find is pyhelm listed on pip. But it does not have sample code for calling deployment, and from some user group / forum feedback the installation process is painful. Somebody also points to azure/draft and another repo but I have no clue on how to come out a solid example that only use Python to deploy Helm chart.</p>
  
  <p>Please let me know where I miss. Thanks.</p>