This message was deleted.
# typescript
s
This message was deleted.
n
you are trying to pass an object of type
aws.ec2.KeyPair
to the
eks.Cluster.nodePublicKey
property, which expects a string. Option A:
Copy code
const cluster = new eks.Cluster(env, {
  ...
  nodePublicKey: "ssh-rsa...",
  ...
})
Option B:
Copy code
const cluster = new eks.Cluster(env, {
  ...
  nodePublicKey: nodePublicKeyPair.nodePublicKey,
  ...
})