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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: V1 - Unable to fetch information about domain #621

Open
rsi-mrobinson opened this issue Mar 5, 2024 · 2 comments
Open

Error: V1 - Unable to fetch information about domain #621

rsi-mrobinson opened this issue Mar 5, 2024 · 2 comments
Labels

Comments

@rsi-mrobinson
Copy link

rsi-mrobinson commented Mar 5, 2024

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Bug Report

Error Description
With the configuration below, I am unable to deploy/create/manage domains using this plugin. However rolling back to v6.4.4 causes the issue to go away and allows deployments to proceed.

Command Run
sls deploy --stage dev

Console Output

脳 Stack dev-proto-test-nodejs-api failed to deploy (0s)
Environment: linux, node 18.19.1, framework 3.38.0 (local) 3.37.0v (global), plugin 7.2.2, SDK 4.5.1
Credentials: Local, environment variables
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
Error: V1 - Unable to fetch information about 'api.dev.elevate.riverside-insights.com':
The security token included in the request is invalid.
    at APIGatewayV1Wrapper.<anonymous> (/__w/proto-test-nodejs-api/proto-test-nodejs-api/node_modules/serverless-domain-manager/dist/src/aws/api-gateway-v1-wrapper.js:77:27)
    at Generator.throw (<anonymous>)
    at rejected (/__w/proto-test-nodejs-api/proto-test-nodejs-api/node_modules/serverless-domain-manager/dist/src/aws/api-gateway-v1-wrapper.js:6:65)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Domain Manager Configuration

customDomain:
    basePath: nodeapi
    domainName: ${self:custom.domains.${self:provider.stage}}
    stage: ${self:provider.stage}
    createRoute53Record: true
    securityPolicy: tls_1_2
    endpointType: edge
    apiType: rest

Versions

  • Domain Manager version(s): 7.3.5
  • Node/npm version: node18.19.1 / npm 10.4.0
  • Serverless Version: 3.37.0
  • Lambda Code js, python, and dotnet6

Additional context/Screenshots
There is definitely nothing wrong with the credentials being used, by only changing the package and package-lock I can resolve the issue.

@rddimon
Copy link
Collaborator

rddimon commented Mar 6, 2024

Hi @rsi-mrobinson

Could you please provide some more info about how your credentials are set?

@rsi-mrobinson
Copy link
Author

rsi-mrobinson commented Mar 6, 2024

we're setting the credentials with serverless config credentials in a github action

  - name: Assume Remote Role
    id: aws-creds
    uses: aws-actions/configure-aws-credentials@v4
    with:
      aws-region: us-east-1
      role-to-assume: arn:aws:iam::${{ steps.account-config.outputs.pipeline-account }}:role/rolename
      disable-retry: true
      web-identity-token-file: /var/run/secrets/eks.amazonaws.com/serviceaccount/token
      output-credentials: true

  - name: Serverless Authentication
    run: |
      serverless config credentials \
        --provider aws \
        --overwrite \
        --key ${{ steps.aws-creds.outputs.aws-access-key-id }} \
        --secret ${{ steps.aws-creds.outputs.aws-secret-access-key }} \
        --profile profile-name

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

No branches or pull requests

2 participants