<p>I am trying to create a Kubernetes on AWS EKS cluster using <code>eksctl</code> with autoscaling enabled using proper IAM permissions. As per the <a href="https://eksctl.io/usage/autoscaling/" rel="noreferrer">documentation</a>:</p>

<blockquote>
  <p>You can create a cluster (or nodegroup in an existing cluster) with
  IAM role that will allow use of cluster autoscaler:</p>
  
  <p><code>eksctl create cluster --asg-access</code></p>
</blockquote>

<p>I am trying to run </p>

<pre><code>eksctl create cluster --asg-access -f myconfig.yml
</code></pre>

<p>But getting this error:</p>

<pre><code>[✖]  cannot use --asg-access when --config-file/-f is set
</code></pre>

<p>Is their a way to use <code>--asg-access</code> within the config file? I try to look for a related config in the <a href="https://eksctl.io/usage/schema/" rel="noreferrer">config file schema doc</a> to no avail.</p>

<p>You can enable autoscaling within config file without passing <code>asg-access</code> flag, i.e.</p>

<pre><code>iam:
  withAddonPolicies:
    autoScaler: true
</code></pre>

<p><a href="https://github.com/weaveworks/eksctl/blob/a9e7c0694ada09802bd8dd707766de3923816510/examples/05-advanced-nodegroups.yaml#L21" rel="noreferrer">Example</a> </p>

<p>Hope this will help</p>
