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
Stephen Rust
@probablyabear
Hi all - have a quick question about deployment. In my org, in order to deploy AWS resources, I have to assume a certain role, eg: aws-vault exec {some-org-role} ... Is there a way to configure this in serverless.yml or through serverless config credentials for this service I'm working on? FYI, I've already configured my default AWS profile via serverless config credentials
Morgan Litton
@TechTeam12

Hey everyone, not sure that this is a new question, but I'm getting a deprecation warning

Deprecation warning: Variables resolver reports following resolution errors:
              - Cannot resolve variable at "provider.deploymentBucket.name": Value not found at "opt" source

Any input for what is going on, or where I can start to understand this issue?

Morgan Litton
@TechTeam12
I tracked down a variablesResolutionMode field in the serverless documentation, but that causes issues for serverless-offline and the application errors with the above.
Aleksei Tcelishchev
@casualuser

Hello everyone!

Any gurus here with deep experience in splitting huge API?
I'm hitting here issue with Maximum policy size of 10240 bytes exceeded for role
And this happens already after serverless-plugin-split-stacks and
serverless-plugin-custom-roles applied and API split in smaller chunks.

After that cloudformation-template-update-stack.json still like 200Kb size.

Please suggest something or point with a proper direction for research.

Aleksei Tcelishchev
@casualuser
for all interested persons in reasons of Maximum policy size of 10240 bytes exceeded for role which not solvable with split-stacks
serverless/serverless#9517
Tim Stackhouse
@tstackhouse
Where does one find the 1.x docs? I can't find the docs repo on github anywhere, and there's no version toggle on the docs site
Domingo Tamayo
@dgptamayo
hi all. i'm trying to find any documentation/references about the 'custom' property in serverless.yml. can anybody point me in the right direction?
chimmy-changa
@chimmy-changa
image.png

Hi all,
I'm struggling with resolving relative imports in yaml files. How do I resolve path to a js file using relative path ?

This is my folder structure:

My serverless.yml file and the hello.yml file . I want to be able to point to the index.js file in the same directory as hello.yml file but unable to do it:

image.png
image.png
Gareth McCumskey
@garethmcc
@chimmy-changa handler: functions/index.handler
the format is path/to/file/filename.functioname
Greg Swallow
@gswallow

Hi all! I am brand new to serverless and I'm jumping in as a pretty dense "sysadmin" type. When I run serverless deploy... on a stack I just cloned, it creates an AWS::ApiGateway::Deployment resource whose name changes each time serverless deploy is run:

    ApiGatewayDeployment1622610163204: {
      "Type": "AWS::ApiGateway::Deployment",
      Properties: {
        RestApiId: {
          Ref: ApiGatewayRestApi
        },
        StageName: dev
      },
      DependsOn: [
        ApiGatewayMethodGraphqlOptions,
        ApiGatewayMethodGraphqlPost,
        ApiGatewayMethodGraphqlopenPost,
        ApiGatewayMethodHealthcheckGet
      ]
    }

Problem is I have an AWS::WAFv2::WebAclAssociation resource that's created with static cloudformation and it fails with a WAFNonexistentItemException error (https://docs.aws.amazon.com/waf/latest/APIReference/API_AssociateWebACL.html):

  WebAclToApiGateway:
    Type: AWS::WAFv2::WebACLAssociation
    Properties:
      ResourceArn: !Join
        - ""
        - - "arn:aws:apigateway:${opt:region, self:provider.region}::/restapis/"
          - !Ref ApiGatewayRestApi
          - "/stages/${self:provider.stage}"
      WebACLArn: !GetAtt WafWebACL.Arn
The stage doesn't exist until the AWS::ApiGateway::Deployment resource exists, so I assume I need to DependsOn that resource but its name changes. Is there a variable I should be looking for as part of a plugin that I can use?
Greg Swallow
@gswallow
I think the answer is ${sls:instanceId}
Ben Collier
@bencollier_twitter
Hi all - having an issue with deployment of a few of our lambdas. AWS is complaining that it can't find the relevant shared object files (.so) - we've tried turning off "slim" and also specifying the .so files in the DockerExtraFiles parameter, but none of these seem to work. Has anyone else experienced this, and is there anything obvious we may be doing wrong. These lambdas all work absolutely fine locally.
Aditya Agarwal
@aditya81070_twitter

Hello all, I am writing a lambda authoriser and want to use context.identity.sourceIp, method.request.headers.Authorization as identitySource. When I deploy the application to AWS, the authorizer is set up correctly and things are working fine.

But when I run my code locally (I am using serverless-offline), I get the error Serverless Offline only supports retrieving tokens from the headers (λ: my-auth). Here is the complete code:

functions:
  auth:
    handler: handlers/auth.auth
    vpc: ${self:custom.vpc}
  lambda-trigger:
    handler: handlers/lambda-trigger.lambdaTrigger
    timeout: 10
    events:
      - http:
          method: post
          path: /lambda-trigger
          cors: true
          authorizer:
            name: auth
            type: REQUEST
            identitySource: method.request.header.Authorization, context.identity.sourceIp
            resultTtlInSeconds: 0
Aleksei Tcelishchev
@casualuser

Hi all - having an issue with deployment of a few of our lambdas. AWS is complaining that it can't find the relevant shared object files (.so) - we've tried turning off "slim" and also specifying the .so files in the DockerExtraFiles parameter, but none of these seem to work. Has anyone else experienced this, and is there anything obvious we may be doing wrong. These lambdas all work absolutely fine locally.

if you're packing locally then you have to use same type of distro for docker image to build packages at as lambda env looks like so use f.e. public.ecr.aws/lambda/python:3.8 or ec2 instance with amazon linux
also using layers is highly recommended for this

mr. Romeijn
@mr-romeijn
Hello, I have a question regarding AWS Lambda event config. I've made a Lambda with an onSuccess handler which works fine when using the Event invocation type. I want to add a http api event but obviously this does not invoke the associated function with the Event invocation type. Is this possible to configure? Could not find anything regarding this in the docs
Trevor Marburger
@trevormarburger
Hello - the serverless docs mention that all GCP Cloud Function event types are supported, but I am only seeing HTTP & PubSub examples in the documentation. Has anyone successfully deployed a GCF with a Cloud Storage object.finalize trigger?
Trevor Marburger
@trevormarburger

@ambhojgoyal - did you ever find a solution to this? If so, what is it - I am running into the same limitation

What will be the event type for google cloud storage like pub/sub has :"providers/cloud.pubsub/eventTypes/topic.publish" ?

Ubani
@ubaniabalogun

Hi all, I'm developing a serverless plugin and my use-case requires me to automatically add resources to the serverless configuration BEFORE variable resolution happens. I used to accomplish this by adding those resources in the plugins constructor by modifying this.serverless.service.resources but this no longer works since serverless 2.46.0

Is there a more appropriate way to add auto-generated resources to serverless prior to variable resolution? Or alternatively is there a way to manually call variable resolution on an autogenerated resource?
I'm facing this challenge because my plugin auto-generates resources from static files in the repository that contain serverless variables, but aren't directly referenced in serverless.yaml

Gareth McCumskey
@garethmcc
@ubaniabalogun I would recommend asking the question as an issue in the GitHub project. That way the team and community who work on the framework can answer that and maybe make sure that the process you used to use is catered for in the new way of doing things
Muse Mekuria
@sumew
Hi folks, I'm looking for a way to clean up serverless resources via lambda... is it possible at all to call serverless remove or something that produces the same effect from a lambda?
Gareth McCumskey
@garethmcc
@sumew serverless remove does a few things but the biggest is to instruct CloudFormation to delete a stack. Perhaps look into the SDK documentation around the CloudFormation service to do that
Crystal R Williams
@CORT0619
Hi, any time I run "sls deploy -v" I'm receiving the error "Error: Profile ___ does not exist". I've already tried a few things like running serverless config credentials with the correct profile that I want to use but it's still telling me profile doesn't exist with a different profile.
Gareth McCumskey
@garethmcc
@CORT0619 Do you have a property called profile in your serverless.yml? The profile refers to an AWS connection profile stored in your ~/.aws/credentials file. If you do not have that file and you are referencing a profile in your serverless.yml you will see that message
Crystal R Williams
@CORT0619
Yes, i added that after looking online and it does reference a named profile in my credentials file.
Crystal R Williams
@CORT0619
@garethmcc do you know if it's possible to verify serverless is referencing the credentials file? i'm just at a loss because a few months ago I had no issue with this.
Gareth McCumskey
@garethmcc
If you have a profile property it is referencing the profile in that credentials file
Aditya Avanth
@AdityaAvanth_twitter
Hi All,
I'm trying to enable cors on an AWS apigateway which is using lambda-proxy integration. The documentation says we can pass multiple origins to cors configuration (https://www.serverless.com/framework/docs/providers/aws/events/apigateway/#enabling-cors) , but when I check the integration response for OPTIONS method, The "Access-control-allow-origin" is only showing 1 origin. So, the api is failing when I'm firing the request from another origin. How to fix this? Any solutions Please?
Md. Aminul Islam Sarker
@aminshamim

I am getting the following error. Is there any idea about it? Anyone?

cmdlet Select-String at command pipeline position 1
Supply values for the following parameters:
Path[0]:
Select-String : Cannot bind argument to parameter 'Path' because it is an empty array.
At line:1 char:1

  • sls deploy
  • ~~
    • CategoryInfo : InvalidData: (:) [Select-String], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyArrayNotAllowed,Microsoft.PowerShell.Commands.SelectStringCommand
I was running sls deploy command
lcranga
@lcranga
I am trying to use https://nestjs.com/ in AWS serverless. So can you send me a working example?
Lewis
@6ewis
I am not getting ssm value back on the lambda. Any idea? serverless/serverless#9676
VikramNisarga
@VikramNisarga
Hey People, I'm unable to find examples of Azure Java functions using serverless, is it supported?
Diego Rainero
@diez:matrix.org
[m]
Hi all.
I can't find no documentation about timestream and serverless
is there some way to manage timestream? is it supported?
Daniel Craig
@danielmartincraig
How can I upload a file to an s3 bucket at time of deploy?
blsmith9
@blsmith9
Hello all,
node_modules aren't getting generated when i use serverless package any ideas?
chimmy-changa
@chimmy-changa

Hello Everyone,

I have recently come across container support for lambda. To my knowledge, I know that serverless framework packages/zips the code and uploads to aws. Does anyone know if serverless framework supports this container workflow ?

By container workflow I mean: When we do serverless deploy:

  • Builds docker images corresponding to the lambda functions
    • Upload to ECR
    • Create or update lambda function to use the newly uploaded container image.

Thanks in advance.

Lewis
@6ewis
what is the maximum timeout for serverless?
i put timeout: 60 but the gateway maximum seems to be 30?
chimmy-changa
@chimmy-changa
@6ewis , I believe various resources have various timeouts. functions have 15, gateway has 30.
@chimmy-changa
Lewis
@6ewis
Does anyone know the implications on cost -- with a timeout of 60s?
provider:
  name: aws
  runtime: nodejs14.x
  stage: prod
  region: us-east-1
  timeout: 60
  tracing:
    lambda: true
  environment:
    AWS_NODEJS_CONNECTION_REUSE_ENABLED: 1
naveenbalaneni
@naveenbalaneni

Unable to find the reference to layer in resource section, especially when we enable the provisionedConcurrency or functionVersion set to true.

if we remove both provisionedConcurrency or functionVersion in serverless script, same code is working fine without any issues

---
service:
  name: rtn
provider:
  name: aws
  region: us-west-2
  stackName: rtn-sls
  deploymentBucket:
    name: ${self:custom.S3BucketName.${opt:stage}}
    maxPreviousDeploymentArtifacts: 10
  deploymentPrefix: rtn/deployment
  runtime: nodejs12.x
  memorySize: 256
  timeout: 300

  # Lambda Configuration
  versionFunctions: false # Lambda Versioning

  # X-Ray Configuration
  tracing:
    lambda: true

custom:
  params: ${file(./env/${opt:stage}/parameters.json)}
  version: ${self:custom.params.Version}
  LayerVersion: ${self:custom.params.LayerVersion}
  s3Key: "https://s3.amazonaws.com/${self:custom.S3BucketName.${opt:stage}}/rtn-business-service/${self:custom.version}"

  S3BucketName:
    devint: rtn-devint
    prod: rtn

package:
  individually: true

functions:
  rtn-api-router:
    name: "rtn-api-router"
    handler: rtn-api-router.handler
    layers:
      - !Ref rtnLayer
    package:
      artifact: "${self:custom.s3Key}/rtn-api-router-v${self:custom.version}.zip"
    provisionedConcurrency: 1

resources:
  - Resources:
      rtnLayer:
        Type: AWS::Lambda::LayerVersion
        Properties:
          CompatibleRuntimes:
            - nodejs12.x
          Content:
            S3Bucket: ${self:custom.S3BucketName.${opt:stage}}
            S3Key: common-nodejs-lambda-layer/common-nodejs-lib-v${self:custom.LayerVersion}.zip
          LayerName: rtn-layer

Getting below error

Serverless Error ----------------------------------------

  ServerlessError: Could not find reference to layer: rtnLayer. Ensure that you are referencing layer defined in your service.
      at /Users/naveen/rtn-api-router/node_modules/serverless/lib/plugins/aws/package/compile/functions.js:739:15
      at Array.forEach (<anonymous>)
      at extractLayerConfigurationsFromFunction (/Users/naveen/rtn-api-router/node_modules/serverless/lib/plugins/aws/package/compile/functions.js:735:29)
      at AwsCompileFunctions.compileFunction (/Users/naveen/rtn-api-router/node_modules/serverless/lib/plugins/aws/package/compile/functions.js:458:9)
      at /Users/naveen/rtn-api-router/node_modules/serverless/lib/plugins/aws/package/compile/functions.js:680:64
      at Array.map (<anonymous>)
      at AwsCompileFunctions.compileFunctions (/Users/naveen/rtn-api-router/node_modules/serverless/lib/plugins/aws/package/compile/functions.js:680:37)
      at AwsCompileFunctions.tryCatcher (/Users/naveen/rtn-api-router/node_modules/bluebird/js/release/util.js:16:23)
      at Promise._settlePromiseFromHandler (/Users/naveen/rtn-api-router/node_modules/bluebird/js/release/promise.js:547:31)
      at Promise._settlePromise (/Users/naveen/rtn-api-router/node_modules/bluebird/js/release/promise.js:604:18)
      at Promise._settlePromise0 (/Users/naveen/rtn-api-router/node_modules/bluebird/js/release/promise.js:649:10)
      at Promise._settlePromises (/Users/naveen/rtn-api-router/node_modules/bluebird/js/release/promise.js:729:18)
      at _drainQueueStep (/Users/naveen/rtn-api-router/node_modules/bluebird/js/release/async.js:93:12)
      at _drainQueue (/Users/naveen/rtn-api-router/node_modules/bluebird/js/release/async.js:86:9)
      at Async._drainQueues (/Users/naveen/rtn-api-router/node_modules/bluebird/js/release/async.js:102:5)
      at Immediate.Async.drainQueues (/Users/naveen/rtn-api-router/node_modules/bluebird/js/release/async.js:15:14)
      at processImmediate (internal/timers.js:456:21)
tropeePatrick
@tropeePatrick

Hi all. Any serverless experts out there open to some contract work?
My startup is requiring a 3 months+ contract laying down some initial architecture and implemention in node. Fully serverless stack on AWS.
Details here:
https://docs.google.com/document/d/1bfvfRF6m8HMWuk1rGq14Q5A0Cnypx0KV6ZV4XBQToTg/edit?usp=sharing

Pm for more details
Many thanks