Is it planned to be able to specify an ESC environ...
# esc
m
Is it planned to be able to specify an ESC environment to use on the fly when using pulumi up ? I'm creating a GitHub Actions pipeline that provisions temporary Azure resources when creating a PR with a specific label, and I would want to handle the authentication to Azure directly using my ESC environment. I am using the "upsert" parameter to create the stack on the fly but I can't specify the ESC environment to use. Any way to do that ? Or anything plan to do that ? I guess I could manually init the stack and set the environment on it but that means an extra step on the command line and the "upsert" parameter becomes useless.
- uses: pulumi/actions@v6
id: pulumi
with:
command: up
stack-name: ${{ vars.PULUMI_ORGANIZATION }}/vue-2048/pr-${{ github.event.number }}
work-dir: infra
comment-on-pr: true
github-token: ${{ secrets.GITHUB_TOKEN }}
upsert: true
s
m
Interesting. Is it something coming to the GitHub action and the cli as well?
s
I think the automation API calls are just writing out a config in memory. There might be a better way to do it, but this is what I'm seeing in the docs: • You can write out the config file and use
pulumi up --config-file /path/to/file
. • You can pass in the config at the CLI using
pulumi up --config ...
šŸ‘ 1
m
Interesting workaround, thanks. I guess I could do the same. I can't use directly the GitHub actions though.
s
Let me double check with engineering that it's not possible to use with the action.
šŸ‘ 1