numerous-judge-71563
05/30/2023, 3:50 AMCreateOrSelectStackAsync
function. Our application is hosted on Kubernetes (K8s), and we keep encountering the following error message:
"errorMessage": "An error occurred trying to start process 'pulumi' with working directory '/tmp/pulumi'. No such file or directory".
However, we have verified that the folder path exists in the pod, and the "tmp" folder has the necessary permissions. We have set up the working directory as follows:
var stackArgs = new InlineProgramArgs(PulumiConfigurationConstants.ProjectName, environment, program)
{
StackSettings = new Dictionary<string, StackSettings>
{
[environment] = new() { SecretsProvider = PulumiConfigurationConstants.SecretsProvider }
},
SecretsProvider = PulumiConfigurationConstants.SecretsProvider,
ProjectSettings = new ProjectSettings(PulumiConfigurationConstants.ProjectName, ProjectRuntimeName.Dotnet)
{
Backend = new ProjectBackend { Url = PulumiConfigurationConstants.PulumiProjectBackendUrl }
},
WorkDir = Path.Combine("..", "tmp", "pulumi")
};
var stack = await LocalWorkspace.CreateOrSelectStackAsync(stackArgs);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.
Powered by