Hi team, Im trying to deploy a yaml file so I depl...
# typescript
b
Hi team, Im trying to deploy a yaml file so I deploy using pulumi instead of kubectl, this is my piece of code
Copy code
new k8s.yaml.ConfigFile(
    'guestbook',
    {
      file: './aws/addons/autoscaler.yml',
    },
    { provider: provider }
  );
but when I do a pulumi up I get the following
Copy code
error: Running program '/Users/fernando.barrera/Documents/GitHub/infrastructure/infrastructure/applications/kubernetes/aws' failed with an unhandled exception:
    Error: ENOENT: no such file or directory, open './aws/addons/autoscaler.yml'
        at Object.openSync (node:fs:585:3)
        at Object.readFileSync (node:fs:453:35)
        at new ConfigFile (/Users/fernando.barrera/Documents/GitHub/infrastructure/node_modules/@pulumi/yaml/yaml.ts:3005:39)
        at /Users/fernando.barrera/Documents/GitHub/infrastructure/infrastructure/applications/kubernetes/aws/addons/dns-autoscaler.ts:15:5
        at Generator.next (<anonymous>)
        at /Users/fernando.barrera/Documents/GitHub/infrastructure/infrastructure/applications/kubernetes/aws/addons/dns-autoscaler.ts:8:71
        at new Promise (<anonymous>)
        at __awaiter (/Users/fernando.barrera/Documents/GitHub/infrastructure/infrastructure/applications/kubernetes/aws/addons/dns-autoscaler.ts:4:12)
        at module.exports (/Users/fernando.barrera/Documents/GitHub/infrastructure/infrastructure/applications/kubernetes/aws/addons/dns-autoscaler.ts:13:45)
        at /Users/fernando.barrera/Documents/GitHub/infrastructure/infrastructure/applications/kubernetes/aws/addons/index.ts:15:42
any clue why this might be happening?
v
Is the path correct? Bear in mind that the path is relative to the directory where pulumi is actually executed (where the main index.ts is)
b
oohhhh, you are right, thanks a lot i was under a different folder