Hello I am trying to create addon to existing eks ...
# typescript
r
Hello I am trying to create addon to existing eks cluster but when i try to import the addon i get below error https://www.pulumi.com/docs/reference/pkg/aws/eks/addon/#import
Copy code
error: Preview failed: unrecognized resource type (Read): aws:eks/addon:Addon
How to fix this ?
b
what version of the provider are you using?
r
Copy code
"@pulumi/eks": {
      "version": "0.34.0",
      "resolved": "<https://registry.npmjs.org/@pulumi/eks/-/eks-0.34.0.tgz>",
      "integrity": "sha512-fY0iZqO8tZbuMDokKY9Q2/PouB0rZIVT/2gTqNUVYTPsAP7e9WP4f8GmDvdTb4OmgfIdPA60exYAcAU9+NgVeA==",
      "requires": {
        "@pulumi/aws": "^4.15.0",
        "@pulumi/kubernetes": "^3.0.0",
        "@pulumi/pulumi": "^3.0.0",
        "axios": "^0.21.1",
        "https-proxy-agent": "^5.0.0",
        "js-yaml": "^3.13.0",
        "netmask": "^2.0.1",
        "which": "^1.3.1"
Copy code
"@pulumi/pulumi": {
          "version": "3.14.0",
          "resolved": "<https://registry.npmjs.org/@pulumi/pulumi/-/pulumi-3.14.0.tgz>",
          "integrity": "sha512-4mSBRd2iCjQJPIsFCc9yY11RNBMHueHev0wwtEA85bdzA6beLIbFB7NtZ3wCnnjqPAJr5UorOlPRG4AASx5rVA==",
          "requires": {
            "@grpc/grpc-js": "^1.2.7",
            "@logdna/tail-file": "^2.0.6",
            "@pulumi/query": "^0.3.0",
            "google-protobuf": "^3.5.0",
            "js-yaml": "^3.14.0",
            "minimist": "^1.2.0",
            "normalize-package-data": "^2.4.0",
            "protobufjs": "^6.8.6",
            "read-package-tree": "^5.3.1",
            "require-from-string": "^2.0.1",
            "semver": "^6.1.0",
            "source-map-support": "^0.4.16",
            "ts-node": "^7.0.1",
            "typescript": "~3.7.3",
            "upath": "^1.1.0"
          }
        }
Copy code
pulumi version
v3.7.0
pulumi import aws:eks/addon:Addon coredns eks-cluster-name:coredns 
version 2.19.0 referenced at node_modules/@pulumi/pulumi/package.json
 =   └─ aws:eks:Addon     coredns         import      
panic: interface conversion: schema.Type is *schema.MapType, not *schema.OptionalType
b
@refined-terabyte-65361 this looks like a bug, could you open an issue for it?
r
sure