Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 16 2019 18:39

    carlosandrebp on master

    upload email icon (compare)

  • Jan 15 2019 14:03

    carlosandrebp on master

    Icons update (compare)

  • Nov 13 2018 16:54
    hassankhan commented #3
  • Nov 02 2018 15:10
    hassankhan commented #3
  • Nov 02 2018 15:10
    hassankhan commented #3
  • Nov 01 2018 23:19
    hassankhan commented #3
  • Oct 29 2018 16:32
    hassankhan commented #3
  • Oct 24 2018 14:38
    hassankhan opened #3
  • Aug 14 2018 23:50

    carlosandrebp on master

    updates animations (compare)

  • Jul 19 2018 16:34
    brianneisler closed #1
  • Jul 19 2018 16:34
    brianneisler commented #1
  • Jul 18 2018 16:36

    andrepiresbp on master

    Updates (compare)

  • Jul 18 2018 15:50

    andrepiresbp on master

    Update (compare)

  • Jul 09 2018 19:25
    gornostal commented #59
  • Jul 09 2018 19:12
    maheshmasale commented #59
  • May 24 2018 23:39
    DavidWells removed as member
  • Feb 13 2018 19:40
    ivan-myob commented #54
  • Feb 08 2018 08:48
    julien2x opened #62
  • Dec 22 2017 16:14
    awcheng opened #61
  • Oct 23 2017 19:12
    dluu2015 closed #60
cs-ms
@cs-ms:matrix.org
[m]
curious if anyone has opinions or examples on using ORM to set up dynamo from a serverless typescript project?
1 reply
cs-ms
@cs-ms:matrix.org
[m]
different question, I want to define iam permissions specifically for a lambda but I'm getting an error that "iam" is an unrecognized property in 'functions.hello' (I'm basing this off the nodejs typescript template)
2 replies
Johan Tibell
@tibbe
How do I set the IAM role required to invoke the API Gateway endpoint created for my lambda functions?
2 replies
Is that different from the IAM role that lambda itself runs with (seems like it should be)?
EMRE GÜNDOĞDU
@emre141
Hi
Does anyone met following. error while deploying serverless
node:899) ExperimentalWarning: The fs.promises API is experimental

 Type Error [ E R R_ I N V A L I D_ A R G_ T Y P E] ------

  TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type Function. Received type undefined
      at promisify (internal/util.js:256:11)
      at Object.<anonymous> (/usr/lib/node_modules/serverless/node_modules/compress-brotli/src/index.js:9:18)
4 replies
jjcamachosanchez
@jjcamachosanchez
Hi. Is there a place where I can read a description of each "serverless create" template.
2 replies
Victor Villacis
@Victor-Villacis
how can I use RDS as a resource all the guides I read are specific to DynamoDB?
cs-ms
@cs-ms:matrix.org
[m]
@swetankkk: I was just running into that error, in my case I needed to install each of the plugins referenced in my plugins section of serverless.ts, so 'serverless plugin install -n serverless-offline' 'serverless plugin install -n serverless-dynamodb-local', and then set it up with 'serverless dynamodb install' because my project is using a dynamodb
I think the enoent is a pretty generic error that gets thrown. the fact it can't find that specific file makes me think a config to copy that file to output is missing or something. full discretion I've only been looking at serverless for a bit over a week though
cs-ms
@cs-ms:matrix.org
[m]
for my own question: I see the serverless debug reference says to use node-inspector which I think is deprecated. I've been struggling to get debugging working from vs code to my offline lambdas. I started referencing this stackoverflow but haven't gotten it totally working either. I'm able to debug from chrome at the serverless entry point, but I can't figure out how to get a breakpoint in my lambda code
Armand
@mim-Armand
Hi 👋
Does serverless create Cloud Resource Manager in Azure like it does with CloudFormation stacks in AWS?
cs-ms
@cs-ms:matrix.org
[m]
I've got a serverless project working offline with dynamo, but when I deploy to aws the lambda exits before the write happens. I've added log statements everywhere so I can see it is precisely at the write call that it fails. not sure how to debug this any further
4 replies
cs-ms
@cs-ms:matrix.org
[m]
is there a good way to reference the variable ${sls:stage} within actual code of a function? would I need to set it as a environment variable and reference it that way?
1 reply
cs-ms
@cs-ms:matrix.org
[m]
@jamesmoey: thanks for the feedback! first comment, I had both some async stuff wrong and some permissions, I got it sorted out though! I need to sort out some exception handling in my source.
I also figured out that I can reference environment variables and get the code completion I was looking for, it is working great!
now I'm trying to figure out how to export an arn on cfn build
James Moey
@jamesmoey
export?
cs-ms
@cs-ms:matrix.org
[m]
or actually, I'm trying to figure out how to export the api gateway endpoint url so I can do a find replace on the url it generates, it's basically a url shortener I'm building
it changes every time I do a clean deploy
James Moey
@jamesmoey
not sure if you can use outputs
cs-ms
@cs-ms:matrix.org
[m]
yeah I think you're right. the api is printed on console when I deploy, I just need to persist it to an evironment variable
James Moey
@jamesmoey
oh you need it in lambda?
cs-ms
@cs-ms:matrix.org
[m]
yeah
James Moey
@jamesmoey
use this plugin serverless-resources-env
cs-ms
@cs-ms:matrix.org
[m]
again, thanks so much for the help!
James Moey
@jamesmoey
no problem
cs-ms
@cs-ms:matrix.org
[m]
oh wow, yeah that plugin is exactly what I wanted
Syd
@sydneybrokeit_twitter
Is there a list of event types for GCP? The docs don't have a list.
Steffan-Ennis
@Steffan-Ennis
I'm having some issues finding the shape for the HttpAPI fn event type. Is there documentation hidden away for this?
specifically the authorizer key for serverless version 3. It doesn't recognise identitySource or resultTtlInSeconds like the http event
Steffan-Ennis
@Steffan-Ennis
never mind I've found it
Gareth McCumskey
@garethmcc
You could also just log out the event object to see what the data is that gets passed
Naveen Bharadwaj
@naveenbharadwaj_gitlab
Hello, have any of you come across this?
Cannot read file node_modules\express\node_modules\depd\package.json due to: EMFILE: too many open files
I'm trying to push a nodejs express app to lambdas
Paul J Barrett
@Paul-J-Barrett
I have a csharp serverless project for my apis. I need to add a lambda for the APIGatewayCustomAuthorizerResponse to setup the Oauth2 access to the APIs in the project. Is there a way to add this one lambda function as part of the project or should I just make a project just for that one lambda?
Also I failed to mention this is on AWS. We are using Google as the authorizer for this internal application.
Eduardo Hitek
@eduardohitek
Have anyone used Serverless + Golang and RabbitMQ trigger? I'm trying using the SQS Event but it comes empty.

```package main

import (
"context"
"log"
"os"

"github.com/aws/aws-lambda-go/events"
"github.com/aws/aws-lambda-go/lambda"

)

// Handler is our lambda handler invoked by the lambda.Start function call
func Handler(ctx context.Context, sqsEvent events.SQSEvent) error {
log.Println("SQS Event", sqsEvent)
for _, v := range sqsEvent.Records {
log.Println(v.Body)
}
return nil
}

func main() {
lambda.Start(Handler)
} ```

Eugene Aiken
@eugene-aiken-bytecode
Can anyone help me understand why I'm getting the following error when I try to invoke my function
Error: Call argument for function sf-2-at-pipeline-2-dev-salesforce is not a valid JSON object
    at Gaxios._request (/Users/eugene.aiken/sf_2_at_pipeline/node_modules/gaxios/build/src/gaxios.js:129:23)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async UserRefreshClient.requestAsync (/Users/eugene.aiken/sf_2_at_pipeline/node_modules/google-auth-library/build/src/auth/oauth2client.js:343:18)
Victor Villacis
@Victor-Villacis
How can I set aws secrets in the framework. I don't want to use environment variables. Can anyone advise or point me in the right direction?
2 replies
Len Boyette
@kevlened

Is Fargate still the best way to run long-running, resource intensive background tasks? I found this post, but it's from 2018.

How are people doing this today?

1 reply
Jeff Tucker
@jedatu_twitter

Would someone be able to provide more description for what the general provider setting "tracing" does?

  tracing:
    # Can only be true if API Gateway is inside a stack.
    apiGateway: true
    # Optional, can be true (true equals 'Active'), 'Active' or 'PassThrough'
    lambda: true

Does this enable X-Ray on all lambdas and render the serverless-plugin-tracing unecessary? In fact, the plugin is not compatible with the new config format (alex-murashkin/serverless-plugin-tracing#23)

4 replies
Jeff Tucker
@jedatu_twitter

I am getting a schema validation error trying to do the following in the serverless.yml file:

environment: ${file(serverless/config/environment.yml)}

The error is Incorrect type. Expected "Aws.Environment"
The format of the external file is just a simple list of key: value pairs. I tried nesting them under various keys such as additionalProperties but the validation did not work. Is this possible?

Reik Schatz
@reikje
can someone point me to an example of how to use the ecr integration with typescript. The Dockerfile needs to copy package.json and the js files into the image. However, the transpiler and packaging part is done using the serverless-esbuild plugin. Is there a good way to reuse the output from this plugin in the Dockerfile?
qvagroup
@qvagroup

Hello i have this issue

{
"errorType": "string",
"errorMessage": "Failed to create a multipart upload on S3: {\"message\":\"Missing required key 'Bucket' in params\",\"code\":\"MissingRequiredParameter\",\"time\":\"2022-05-30T10:04:12.622Z\"}",
"trace": []
}

Andrew C
@andrew-caines

I am struggling with CORS. Is there some common gotchas?
The end point in question in my serverless.yml

  getAuctions:
    handler: src/handlers/getAuctions.handler
    events:
      - http:
          method: GET
          path: /auctions
          authorizer: ${self:custom.authorizer}
          cors: true

in my authorizer

resources:
  Resources:
    GatewayResponse:
      Type: "AWS::ApiGateway::GatewayResponse"
      Properties:
        ResponseParameters:
          gatewayresponse.header.Access-Control-Allow-Origin: "'*'"
          gatewayresponse.header.Access-Control-Allow-Headers: "'*'"
        ResponseType: EXPIRED_TOKEN
        RestApiId:
          Ref: "ApiGatewayRestApi"
        StatusCode: "401"
    AuthFailureGatewayResponse:
      Type: "AWS::ApiGateway::GatewayResponse"
      Properties:
        ResponseParameters:
          gatewayresponse.header.Access-Control-Allow-Origin: "'*'"
          gatewayresponse.header.Access-Control-Allow-Headers: "'*'"
        ResponseType: UNAUTHORIZED
        RestApiId:
          Ref: "ApiGatewayRestApi"
        StatusCode: "401"

and in my React front end i get the error:
Access to XMLHttpRequest at 'https://{{URL}}/dev/auctions' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I am fairly new to serverless, am I missing a well known issue here?

2 replies
Jeff Tucker
@jedatu_twitter
Does anyone know if the "file" function (custom: { file('custom.yml') }) has a fallback if the target file is empty or missing? I tried this: custom: { file('custom.yml') , 'none' } but it didn't help. "...Invalid variable address at index..."
Jonathan Monroy
@JMonroy86
Hi guys!, does anyone know how to make the serverless dashboard ci/cd recognize a serverless-compose file, or how to set up the ci/cd from the applications configuration for each service, that selects the ghub repository and can go to my service folder where I have the serverless.yml?
2 replies
pablobuild
@pablobuild

Hi guys, i had a function/endpoint in my template, one of the many endpoints created through sls deploy.

Buuut i jus did this: I went via aws console => api gateway management and from there I removed the function... and now running sls deploy is failing like a loser ;)