Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot deploy: you are not currently logged in #33

Open
arpecop opened this issue Jun 26, 2020 · 6 comments
Open

Cannot deploy: you are not currently logged in #33

arpecop opened this issue Jun 26, 2020 · 6 comments

Comments

@arpecop
Copy link

arpecop commented Jun 26, 2020

name: Deploy
on:
    push:
        branches:
            - master
jobs:
    deploy:
        name: Deployment
        runs-on: ubuntu-latest
        strategy:
            matrix:
                stages:
                    - stage: 'prod'
                      AWS_SECRET_ACCESS_KEY: 'AWS_SECRET_ACCESS_KEY_PROD'
                      AWS_ACCESS_KEY_ID: 'AWS_ACCESS_KEY_ID_PROD'
        steps:
            - name: Checkout
              uses: actions/checkout@v2
            - name: npm install and build
              run: npm install
            - name: Install VPC Plugin and Deploy
              uses: serverless/[email protected]
              with:
                  args: -c "serverless deploy --stage=${{ matrix.stages.stage }} --verbose"
                  entrypoint: /bin/bash
              env:
                  AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
                  AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

Screenshot 2020-06-26 at 17 21 19

I added GitHub to serverless and my repos are listing there

@nclaveeoh
Copy link

I ran into the same problem using the AWS key approach, go with SERVERLESS_ACCESS_KEY instead. Go here to see how to create a serverless access key: https://www.serverless.com/framework/docs/dashboard/cicd/running-in-your-own-cicd/

@DavideViolante DavideViolante changed the title Cannot deploy Cannot deploy: you are not currently logged in Jan 3, 2021
@marcelloromani
Copy link

Also check whether you have

#app: your-app-name
#org: your-org-name

defined in serverless.yaml

I had, but they were wrong: removing those keys altogether fixed the "you are not logged in" issue for me.

@AlexRypun
Copy link

I had the same issue while deploying with bitbucket pipelines (worked fine from the local machine).
The removal of "org: *****" from serverless.yml solved the problem.

Any ideas where the root of the problem is?

@magiskboy
Copy link

I had the same issue while deploying with bitbucket pipelines (worked fine from the local machine). The removal of "org: *****" from serverless.yml solved the problem.

Any ideas where the root of the problem is?

it worked for me

@ryanlawson
Copy link

If you want to use AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY you need to add --use-local-credentials in your args.

@ryanlawson
Copy link

Created #90 to add specific options for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants