Hi, I'm trying to make pulumi work via github acti...
# general
s
Hi, I'm trying to make pulumi work via github actions:
Copy code
steps:
      - uses: actions/checkout@v2
      - 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: ${{ secrets.AWS_ACCESS_KEY_ID }}
          aws-region: us-east-1
          aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
      - name: Install Pulumi CLI
        uses: pulumi/action-install-pulumi-cli@v1.0.1
      - run: yarn
      - run: cat Pulumi.mystack.yaml
      - uses: pulumi/actions@v2
        with:
          parallel: 1
          command: preview
          stack-name: 'mystack'
          cloud-url: <s3://mybucket>
          comment-on-pr: true
          github-token: ${{ secrets.GITHUB_TOKEN }}
          work-dir: "path/to/subfolder"
        env:
          AWS_ACCESS_KEY_ID: ${{ secrets.ORG_AWS_ACCESS_KEY_ID }}
          AWS_SECRET_ACCESS_KEY: ${{ secrets.ORG_AWS_ACCESS_KEY_SECRET }}
          AWS_REGION: us-east-1
But I can't make it work. It keeps failing on:
Copy code
##[debug]Configuration is loaded
##[debug]Pulumi CLI is available
##[debug]Logging into to <s3://mybucket>
##[debug]Working directory resolved at /home/runner/_work/path/to/subfolder
Error: code: 255
 stdout: 
 stderr: error: no stack named 'mystack' found

 err?:
Can someone please help? It works locally on my laptop, but not in CI
b
can you run
pulumi stack ls
from your local laptop? It may be that the login didn't happen correctly
s
Looks like I had 2 problems. 1. Bad bucket name 2. Wrong bucket permissions The problem is that I only got hints about these problems by dropping the action and using raw bash.