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

v1 API Gateway endpoints not getting printed out to the console #230

Open
kristallizer opened this issue Aug 9, 2023 · 0 comments
Open

Comments

@kristallizer
Copy link
Contributor

In serverless.yml:

functions:
  index:
    handler: index.handler
    events:
      - http:
          path: /
          method: get

  upload-link:
    handler: src/functions/uploadLink.handler
    events:
      - http:
          path: /upload-link
          method: post

  download-file:
    handler: src/functions/downloadFile.handler
    events:
      - http:
          path: /download-file/{fileLinkUlid}
          method: get

When I deploy to AWS:

endpoints:
  GET - https://6a9876os1c.execute-api.us-east-1.amazonaws.com/k3/
  POST - https://6a9876os1c.execute-api.us-east-1.amazonaws.com/k3/upload-link
  GET - https://6a9876os1c.execute-api.us-east-1.amazonaws.com/k3/download-file/{fileLinkUlid}
functions:
  index: service-k3-index (55 MB)
  upload-link: service-k3-upload-link (55 MB)
  download-file: service-k3-download-file (55 MB)

When I deploy to the local stage using Localstack:

Deploying service to stage local (us-east-1)
Using serverless-localstack
Using serverless-localstack
serverless-localstack: Reconfigured endpoints
serverless-localstack: Reconfigured endpoints
Skip plugin function AwsCompileFunctions.downloadPackageArtifacts (lambda.mountCode flag is enabled)
Skip plugin function AwsDeploy.extendedValidate (lambda.mountCode flag is enabled)
Skipping template validation: Unsupported in Localstack

✔ Service deployed to stack service-local (21s)

endpoint: http://localhost:4566/restapis/tbwgi0iega/local/_user_request_
functions:
  index: service-local-index (31 kB)
  upload-link: service-local-upload-link (31 kB)
  download-file: service-local-download-file (31 kB)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants