how can I use the pulumi automation api without logging in? Specifically I need to run a .Net core application in an Azure DevOps build pipeline that use the Pulumi Automation API.
I just need the API to generate a json file from the pulumi C# code but the code fails because it expects a pulumi api token, which for security purposes I should not provide in my use case.
08/20/2023, 6:58 PM
you need somewhere to store state, so you can’t do it without logging into a backend
08/20/2023, 8:24 PM
pulumi login file:///data
08/21/2023, 6:36 AM
@icy-controller-6092 Thanks I tried that but it still complains that the PULUMI_ACCESS_TOKEN variable is empty or invalid.
@billowy-army-68599 I understand that is the general use case of Pulumi, but is there somehow I can override it? The only thing I need at a start is to use Pulumi to generate the Json file that represents the resources in that file regardless of state. So in that case an empty state file could be used but Pulumi Automation API still complains because of the lack of an API token.
Would it be possible to add a method that enable the Pulumi Automation API to just ignore whether it can find a state file. The reason being I just want to use Pulumi Automation API to generate the JSON output from the Pulumi code by generating a list of the resources that exist in the code regardless of state in a state file/pulumi.com/cloud. I will use this raw JSON data for cloud cost estimations and the lack of this feature is obstructing me from creating this solution.