<p>So if the cluster was created with  the following command</p>
<pre class="lang-sh prettyprint-override"><code>eksctl create cluster  -f config/prod.yaml
</code></pre>
<p><strong>prod.yaml</strong></p>
<pre><code>apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
....
</code></pre>
<p>How to obtain a current version of the prod.yaml if that file was lost (not accessible anymore)?</p>

<p>The <code>ClusterConfig</code> is not stored inside the cluster currently. So if you lose it you can not get it back from the cluster. There is an <a href="https://github.com/weaveworks/eksctl/issues/642" rel="noreferrer">open issue</a> to support storing that as a configMap.</p>
<p>Having said that you should probably store it in a version control system to avoid losing it even if the feature to store the ClusterConfig as a ConfigMap is implemented sometime in future.</p>
