# general


07/10/2023, 8:45 AM
I am getting this issue, not too sure what to do as it states that Role is not assignable to Role
Copy code
TSError: ⨯ Unable to compile TypeScript:
    aws/eks/eks.ts(19,3): error TS2345: Argument of type '{ name: string; skipDefaultNodeGroup: true; createOidcProvider: true; instanceRole: Role; providerCredentialOpts: { roleArn: string; }; fargate: false; kubernetesServiceIpAddressRange: string; ... 4 more ...; encryptionConfigKeyArn: pulumi.Output<...>; }' is not assignable to parameter of type 'ClusterOptions'.
      Types of property 'instanceRole' are incompatible.
        Type 'Role' is not assignable to type 'Role | Promise<Role> | OutputInstance<Role> | undefined'.
          Property 'roleLastUseds' is missing in type 'import("/home/wernich/WebstormProjects/infrastructure/infrastructure/devops/shared/node_modules/@pulumi/aws/iam/role").Role' but required in type 'import("/home/wernich/WebstormProjects/infrastructure/infrastructure/devops/shared/node_modules/@pulumi/eks/node_modules/@pulumi/aws/iam/role").Role'.
It seems that the Role created by aws.iam is not compatible with the role needed by eks.cluster. Any ideas?
I fixed it by updating my the EKS package