Is that environment variable set in the shell process that’s running the server? In what you’ve pasted above, it looks like you’re setting it in the shell where you’re running curl.
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.