https://pulumi.com logo
#general
Title
# general
f

flat-sunset-12668

08/29/2023, 9:04 PM
Hello, I am currently setting up CI/CD with GitHub Actions + Pulumi and was hoping someone could provide some insight into the following error:
Copy code
CommandError: code: -2
 stdout: 
 stderr: Command failed with exit code 255: pulumi stack select --stack dev --non-interactive
error: If you're using the --stack flag, pass the fully qualified name (org/project/stack)
with the following code:
Copy code
name: View Infra Changes

on: [push]

env:
  PYTHON_VERSION: "3.11.4"

jobs:
  Preview:
    name: Pulumi Preview
    runs-on: ubuntu-20.04
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Set up Python ${{ env.PYTHON_VERSION }}
        uses: actions/setup-python@v4
        with:
          python-version: ${{ env.PYTHON_VERSION }}

      - name: Configure AWS Credentials
        uses: aws-actions/configure-aws-credentials@v1
        with:
          aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
          aws-region: ${{ secrets.AWS_REGION }}
          aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          aws-session-token: ${{ secrets.AWS_SESSION_TOKEN }}

      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install -r requirements.txt

      - name: Pulumi Preview
        uses: pulumi/actions@v4
        with:
          command: preview
          stack-name: dev
        env:
          PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
I am attempting to access dev from my individual account (not an org). Even including the project name in the "stack-name" variable, I get the same error. Does anyone have insight to how I can resolve this error?
p

proud-twilight-52651

08/30/2023, 3:22 AM
have you tried using your username (email) for the "org" part ?
f

flat-sunset-12668

08/30/2023, 4:52 PM
This was the solution, thanks!