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

Does not support apiKeys creation for private api #29

Open
hcanalesmx opened this issue Sep 24, 2018 · 0 comments
Open

Does not support apiKeys creation for private api #29

hcanalesmx opened this issue Sep 24, 2018 · 0 comments

Comments

@hcanalesmx
Copy link

Hello,

I am trying to convert a Serverless Framework template to AWS SAM and I noted that the created template does not support the API key and therefore the created API is not secured - as it is usually done when deploying with the Serverless Framework template. Is there a way to include it in the AWS SAM template?

Here the related parts of the Serverless template that I want to convert:

provider:
  name: aws
  runtime: nodejs8.10
  timeout: 6 
  apiKeys:
    - myApiKey

functions:
  getSignedUrl:
    handler: handler.getSignedURL
    events:
      - http:
          path: get-signed-url
          method: post
          cors: true
          private: true
  check:
    handler: handler.check
    events:
      - http:
          path: check
          method: post
          cors: true
          private: true
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

1 participant