powerful-printer-57241
04/06/2023, 10:26 AMazure-native:clientId: ...
azure-native:clientSecret:
secure: ...
azure-native:subscriptionId: ...
azure-native:tenantId: ...
in the stack's config file.
However, with this change, we started getting this error in the GitHub Action:
azure-native:resources:ResourceGroup <resource-group-name> refreshing (22s) error: obtain subscription() from Azure CLI: parsing json result from the Azure CLI: waiting for the Azure CLI: exit status 1: ERROR: Please run 'az login' to setup account.
What are we missing? I am pretty sure we authenticated in this way before in GitHub Actions.melodic-tomato-39005
04/06/2023, 3:26 PMpowerful-printer-57241
04/06/2023, 4:05 PMRefresh stack on <org>/shared/develop
Refreshing (<org>/develop)
The repository looks like this
Shared
Pulumi.yaml
Pulumi.develop.yaml
Pulumi.demo.yaml
...
And the action looks like this
name: infrastructure-preview
on:
pull_request:
paths:
- 'Shared/**'
jobs:
preview:
name: Preview ${{ matrix.stack }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- stack: shared/develop
dir: ./Shared
- stack: shared/demo
dir: ./Shared
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Preview ${{ matrix.stack }}
uses: pulumi/actions@v4
with:
command: preview
stack-name: mews/${{ matrix.stack }}
work-dir: ${{ matrix.dir }}
diff: true
refresh: true
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
So I think it should pick up the correct YAML config file...melodic-tomato-39005
04/06/2023, 5:22 PMpulumi config --stack <org>/develop
?powerful-printer-57241
04/08/2023, 3:57 PM