<p>I am getting error during applying YAML config to AWS K8s cluster:</p>
<p>Error:</p>
<pre><code>couldn't create node group filter from command line options: 
loading config file &quot;K8s-nodegroups/group_test.yaml&quot;: error unmarshaling JSON: 
while decoding JSON: json: unknown field &quot;fullEc2Access&quot;
</code></pre>
<p>Here is the command which I am using:
<code>eksctl create nodegroup -f K8s-nodegroups/group_test.yaml</code></p>
<p>And here is my YAML:</p>
<pre><code>apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig

metadata:
  name: some-cluster-name
  region: eu-west-2

nodeGroups:
  - name: &quot;group-test&quot;
    instanceType: t3.small
    desiredCapacity: 1
    subnets:
      - eu-west-2a
      - eu-west-2b
    maxSize: 2
    minSize: 1
    fullEc2Access: true
    spot: true
    maxPodsPerNode: 100
    volumeSize: 8
    volumeType: gp3
    labels: { group: test }
</code></pre>
<p>And there is not error related to <code>fullEc2Access</code>, if I remove it I will get next one:</p>
<p><code>...error unmarshaling JSON: while decoding JSON: json: unknown field &quot;spot&quot;</code></p>
<p>Why my file is trying to precess like a JSON?
How I can fix it, I got this example form docs and checked it many times.</p>
<p>I know that I can use &quot;one line&quot; command to create nodegroup, but I want to use YAML.
How it is possible to fix it?</p>
<p>I tried eksctl <code>0.131.0</code> and <code>0.128.0</code> versions - same errors.</p>

prosto.vint
<p><strong>fullEc2Access</strong> does not exists as a property in the schema, <strong>spot</strong> is a property of <em>ManagedNodeGroup</em>, not <em>NodeGroup</em>.</p>
<p>See <a href="https://eksctl.io/usage/schema/" rel="nofollow noreferrer">EKS Config File Schema</a> for further info, or you can print the default schema using the command</p>
<pre><code>eksctl utils schema
</code></pre>
