Because the code relies on the backend, you have to set the backend before you can run the code. You can't set it in the code without using something like Automation API (in which case you'd set up the stack, including the backend, and execute the various stack operations like preview, up, destroy, etc. from the Automation API code).
a
aloof-doctor-77911
01/19/2024, 4:28 PM
yes i'm using automation api but how to set this backend login ?
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.