you need somewhere to store state, so you can’t do it without logging into a backend
i
icy-controller-6092
08/20/2023, 8:24 PM
pulumi login file:///data
r
red-scooter-62880
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.
red-scooter-62880
09/02/2023, 5:39 PM
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.
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.