This message was deleted.
# automation-api
s
This message was deleted.
e
self._create_resources()
I think that should be
self._create_resources
, you want a reference to the function there, not to call it.
s
@echoing-dinner-19531 I will try that and update.. thanks
@echoing-dinner-19531 getting the same error.. 😞
e
Are you getting any other output? Only thing I can think is maybe that namespace isn't being set correctly in the automation program vs reading from config in the CLI program
s
@echoing-dinner-19531 I have found the issue, There were some problematic env variables while running the pulumi API program from the pycharm. So, I have removed them and now its working. BTW, do you know how to get a kubeconfig content from pulumi w/o creating an actual file?
e
BTW, do you know how to get a kubeconfig content from pulumi w/o creating an actual file?
As in from aws clusters and the like? Or creating them in code? The former I'm pretty sure things like eks cluster resources have a kubeconfig property on them. The later, there's nothing built-in really but it's just building up a json file which should be pretty simple in most languages.
s
@echoing-dinner-19531 I have managed it using dynamic kubeconfig creation.