the whole return value of createEksCluster is undefined, not just the kubeconfig
broad-helmet-79436
11/05/2019, 9:09 AM
if you remove the try-catch you should see the error you get. as is you're just catching the error without logging it and implicitly returning undefined from the function
m
most-parrot-35986
11/05/2019, 9:16 AM
Makes sense. I can remove the
try catch
locally and still don't get any errors. CI, however, gets that error all the time
w
white-balloon-205
11/05/2019, 2:34 PM
I'm not sure I understand what the goal of all the
async/await
here is. But indeed since you are catching the error and not returning anything in the
catch
clause - this function will return
undefined
if there is an error. You could rethrow it, or
console.log
it, to see what the error is? (or could just remove all the `async`/`await` here - which I don't think is actually doing anything?)
m
most-parrot-35986
11/05/2019, 6:49 PM
Thank you both for the responses. I'm pretty sure I found the issue.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.