victorious-megabyte-32350
07/21/2021, 10:11 AMpulumi preview --supress-outputs
) adds the all output.
The step is pretty similar to the example
- uses: pulumi/actions@v3
with:
command: preview
stack-name: dev
comment-on-pr: true
github-token: ${{ env.GITHUB_TOKEN }}
work-dir: ${{ env.working-directory }}
env:
PULUMI_ACCESS_TOKEN: ${{ env.PULUMI_ACCESS_TOKEN }}
Can someone help me with this?witty-candle-66007
07/21/2021, 2:52 PMenv.GITHUB_TOKEN
I’m surprised that worked since when I tried your code as-is, it threw an error and the Pulumi and Github docs indicate it is referenced as a secret (secrets.GITHUB_TOKEN
)
So I wonder if that’s part of the issue you are seeing.victorious-megabyte-32350
07/21/2021, 3:02 PMenv.GITHUB_TOKEN
is because in the job I added environment values
Let me share that part of the code:
jobs:
InfrastructurePreview:
name: Pulumi Preview
runs-on: ubuntu-latest
env:
working-directory: ./infrastructure
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '14.x'
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ env.AWS_ACCESS_KEY_ID }}
aws-region: us-west-2
aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }}
- name: Install Dependencies
run: yarn install --frozen-lockfile
working-directory: ${{ env.working-directory }}
- uses: pulumi/actions@v3
with:
command: preview
stack-name: dev
comment-on-pr: true
github-token: ${{ env.GITHUB_TOKEN }}
work-dir: ${{ env.working-directory }}
env:
PULUMI_ACCESS_TOKEN: ${{ env.PULUMI_ACCESS_TOKEN }}
witty-candle-66007
07/21/2021, 3:11 PMvictorious-megabyte-32350
07/21/2021, 4:25 PM🍹 Previewing update (company/dev)
View Live: <https://app.pulumi.com/company/infrastructure/dev/previews/4e68223d-5963-2bd8-5200-4427721b078c>
pulumi:pulumi:Stack infrastructure-dev running
+ aws:s3:Bucket test-bucket-pr-ci create
aws:dynamodb:Table Table1
aws:dynamodb:Table Table2
aws:s3:Bucket web-app-dev
- aws:s3:Bucket another-bucket delete
pulumi:pulumi:Stack infrastructure-dev
Outputs:
~ webApp : {
...values
}
~ dynamodbTables : {
..tables
}
...rest
Resources:
+ 1 to create
~ 1 to update
- 17 to delete
19 changes. 82 unchanged
outputs
is printing outwitty-candle-66007
07/21/2021, 5:01 PMvictorious-megabyte-32350
07/21/2021, 6:17 PMwitty-candle-66007
07/21/2021, 6:31 PMexport …
stuff is how stack outputs are generated.victorious-megabyte-32350
07/21/2021, 6:39 PMwitty-candle-66007
07/21/2021, 7:19 PM