This message was deleted.
# aws
s
This message was deleted.
b
This is the code I’m using:
Copy code
const cluster = new eks.Cluster(clusterName, {
  name: clusterName,
  vpcId,
  publicSubnetIds,
  privateSubnetIds,
  instanceType: 't4g.medium',
  desiredCapacity: 3,
  minSize: 3,
  maxSize: 10,
  deployDashboard: false,
  enabledClusterLogTypes: ['api', 'audit', 'authenticator', 'controllerManager', 'scheduler'],
  version: '1.24',
  createOidcProvider: true,
});
I see the same issue when I invoke with the default config as well:
Copy code
const cluster = new eks.Cluster(clusterName);
Figured it out. My
~/.aws/config
file had
output=yaml_stream
, while this provider assumes
json
. It probably should set the env var
AWS_DEFAULT_OUTPUT=json
when invoking
aws eks get-token
Or use the flag
--output json
I’ll create a PR to fix
w
Good catch! A PR (or even just issue) would be great. 🙌