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
omar-gosaas
@omar-gosaas
Hi, I want to get parameters by path from aws parameter store in serverless. Can anyone tell whether its possible ? If so then please give example.
Currently I am able to get one parameter using the following syntax:
parameter: ${ssm:path:/all-params/param1~true}
Dorian Machado
@dorian599

Mr @vamshi9 i wrote an article in Medium explaining how to get parameters by path for Python Lambda functions

https://link.medium.com/CedfllZNN3

omar-gosaas
@omar-gosaas

@dorian599 Do you have any idea about this?

Hi, I want to get parameters by path from aws parameter store in serverless. Can anyone tell whether its possible ? If so then please give example.
Currently I am able to get one parameter using the following syntax:
parameter: ${ssm:path:/all-params/param1~true}

Dorian Machado
@dorian599

Yes mr @omar-gosaas , i wrote an article in medium about it

https://link.medium.com/CedfllZNN3

I hope it will useful for you :smile:
omar-gosaas
@omar-gosaas

Yes mr @omar-gosaas , i wrote an article in medium about it

https://link.medium.com/CedfllZNN3

I want to get parameters in serverless.yml file of AWS lambda

Dorian Machado
@dorian599

In that case Mr @omar-gosaas this post could be useful too

https://medium.com/@dorian599/serverless-aws-parameter-store-bdd292b2af5c

Nguyễn Đức Thành
@thanhndlifetime_gitlab
hello, iam new bie, can who tell me what serviceless is it, thank all of you
Dorian Machado
@dorian599
:D
Martin Juhasz
@martinjuhasz
Hey, so i started adding serverless-offline. I ran the offline command and went to my graphql playground (using apollo-server-lambda). The playground loads but gql returns Response not successful: Received status code 500 (it works on aws). the serverless-offline console doesn't show any errors or such, jsut that the post requests where made. how do i debug sls-offline? where do i access console.errors or see thrown errors?
Martin Juhasz
@martinjuhasz
hm, i just can't figure out why my lambda is failing in offline mode :( tried adding SLS_DEBUG=* f.e.
Chris Campell
@ccampell
@martinjuhasz I have limited experience with serverless-offline, sorry. Try serverless invoke local -f <function_name> -l and see if the logs give any useful output?
Martin Juhasz
@martinjuhasz
@ccampell thanks for poking me into the right direction. the apollo-graphql-lambda package is not supposed to be run using serverless invoke (don't know why yet). but i found the solution here: https://github.com/apollographql/apollo-server/issues/2120#issuecomment-449381883 i had to add integration: lambda-proxy to the api gateway config
Emdadul Huq
@emdadul38
What's the best practices of serverless application of a single function ?
Tobias Frischholz
@realfreshwood_twitter

Maybe someone can help me out. I just wanted to call an aws lambda function on serverless deploy.
I heard it is possible via the custom resource definition, but the documentation is not describing this feature. Anyway I have the following custom resource defintion:

resources:
  Resources:
    CustomDomain:
      Type: AWS::ApiGateway::CustomDomain
      Properties:
        DomainName: pdv2.api.share2act.io
        Certificate: SomeCertificate
    ApiCatalogCustomResource:
      Type: AWS::Lambda::Function
      Ticket: arn:aws:lambda:eu-central-1:969937650859:function:api-catalog-v1-apiCatalog
      Properties:
        TargetDomainName: !Ref CustomDomain
  Outputs:
    CatalogID:
      Description: ID of the generated catalog
      Value: !GetAtt ApiCatalogCustomResource.ID

During serverless deploy I get the following error:

  Type Error ---------------------------------------------

  TypeError: Cannot set property 'S3Key' of undefined

I just want to trigger the lambda function arn:aws:lambda:eu-central-1:969937650859:function:api-catalog-v1-apiCatalog

Martin Juhasz
@martinjuhasz
Would you all recommend putting backend / frontend deployment into two seperate serverless.yml files? i got the first part of my backend running and now want a react app and deploy it to s3. in my head keeping them in a single yml would benefit in beeing able to transfer the backend-api endpoint as an env-var for my frontend. also i could run a single command to deploy backend, then frontend. on the other hand i think it could get messy. for one with my yarn dependencies, and also the serverless.yml file. what do you think?
Zahra Batool
@zahrabatool.txlabz_gitlab

Hello @all,

I am new to serverless, doing my first deployment in an existing AWS Lambda function. This is already running app, just made some changes but the SLS deploy create a new API endpoint and deploys code to it. But I need to deploy to the same API endpoint and Lambda function. Can you please guide me on how I can do this?

Thank you

Rahul Roy
@iamrahulroy
@zahrabatool.txlabz_gitlab you wish to deploy a single endpoint?
If that's the case, then you need to run serverless deploy function -f functionName Here's a link to the documentation https://serverless.com/framework/docs/providers/aws/cli-reference/deploy-function/
Zahra Batool
@zahrabatool.txlabz_gitlab
It's an express rest api project running in a same Lamda function @iamrahulroy
Jeff Grossman
@jeffgrossman3000
Hi, I am new to Serverless. I have inherited an app written in Serverless+Angular. I am trying to fix that the fonts do not download correctly.
I think it is because API-G sends them back to me in UTF-8 instead of ANSI. But, as we use the proxy to go between API-G and Lambda, there is no place in the Response pathway to specify the content type. I've tried a blizzard of other stuff -- the APIGW binary plugin, setting / as the binary media type, etc. -- and none of that makes any difference. (Note that images are good so the problem is not all binary media.)
Sample of the problem here: https://q9ruusveoc.execute-api.us-east-1.amazonaws.com/thunderbolt/
Is there a known good/best way to fix this?
Thank you for any guidance.
Răzvan Botea
@Mayhem93
hey guys, I've searched for an issue that I started having with the last version of serverless but nothing helped since my issue is an odd one
Error: The CloudFormation template is invalid: Template format error: Unresolved resource dependencies [] in the Resources block of the template
as you can see the [] array is empty, so basically, I'm left with nothing, even I can't debug it, I've looked into the compiled cform json and its look ok, nothing wrong with it, every dependency looks ok
all the other similar issues on forums and whatnot had a resource name in the array, but mine is empty. Is my life over, is this the end of me ? :(
Hamilton Chua
@hamiltonchua
hello, does anyone here know in what circumstances serverless framework adds a resource policy like this to the api gateway resource ?
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": "",
"Action": "execute-api:Invoke",
"Resource": "arn:aws:execute-api:ap-southeast-1:xxxxx:xxxxx///",
"Condition": {
"IpAddress": {
"aws:SourceIp": [
"0.0.0.0/0",
"::/0"
]
}
}
}
]
}
redacted the accountid and api id
the reason I asked is we have one function that has a lambda authorizer, at some point it stopped working because this resource policy was added during a recent deploy
Jeff Grossman
@jeffgrossman3000
@hamiltonchua I think I just encountered this problem, too: I had a person setup to do desktop deployments and suddenly he can't. Error is "IamRoleLambdaExecution - API: iam:PutRolePolicy User: arn:aws:iam::72xxxxxxxx21:user/Axxx.Jxxx is not authorized to perform: iam:PutRolePolicy on resource: role awsangapp-thunderbolt-us-east-1-lambdaRole."
Mel Macaluso
@MelMacaluso
Hi guys, how to skip resources creation? (specifically a stepMachines) as like this, it lets me deploy successfully to one stage and not to both as it claims the step machine already exists.
Buamod
@Ibuamod_twitter
is there a way to use
Source ami filter or then fall into ami id
Martin Juhasz
@martinjuhasz
i wonder how one does setup a new workstation after pulling a repo containing a serverless file? can one simply run sls deploy again or do i need to do anything else in order to correctly setup serverless on that machine?
Gareth McCumskey
@garethmcc
@martinjuhasz At most you need to do an npm install for dependancies
clmn
@JacksonGariety
How can I respond to serverless events with a stream instead of a callback?
nguyenthedan
@nguyenthedan
package.json have bcryptjs but when i deploy, i get error: Cannot find module 'bcryptjs'
anyone know why?
igladun
@igladun
Hi folks
Can you recommend please a good way to attach swagger api definition to serverless? I am trying to use serverless-swagger-api plugin, but I got an error
Error: The CloudFormation template is invalid: Template error: instance of Fn::Sub references invalid resource attribute TestPathLambdaFunction.Arn
james wolf
@contractorwolf
@nguyenthedan did you just add bcryptjs to the npm package.json file or did you npm install it locally?
@zahrabatool.txlabz_gitlab are you using the same AWS account as the original project?
Rahul Roy
@iamrahulroy

@zahrabatool.txlabz_gitlab are you using the same AWS account as the original project?

This

Vamshi Bachaneboina
@vamshi9
Can serverless connect to multiple versions of lambda?
clmn
@JacksonGariety
I have a ~30Mb layer that gets uploaded every time I deploy. Is there a way to skip it uploading unless it has changed? It's really tiresome waiting for it over and over.
Rahul Roy
@iamrahulroy

I have a ~30Mb layer that gets uploaded every time I deploy. Is there a way to skip it uploading unless it has changed? It's really tiresome waiting for it over and over.

Would it be possible to deploy the layer independently and then use the published ARN? I have a similar setup without the above problem.

Dorian Machado
@dorian599

@JacksonGariety In this Article

https://medium.com/@dorian599/serverless-aws-lambda-layers-and-python-dependencies-92741138bf31

The Lambda Layer is managed separately in a independent stack and the layer is consumed from Lambdas via ARN

Brandon Shega
@BrandonShega
Hi all, I have a serverless setup that deploys a SPA to s3 and then set it up through cloudfront. The s3 bucket is in global, but one environment for cloudfront/cloudformation is in ca-central-1 and the other is in us-west-2. When I deploy the us-west-2 stack, everything works flawless, when I deploy the ca-central-1 variant I get an authentication error when uploading to s3: InvalidRequest: The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256. What am I doing wrong?
Most SO posts that I've read have to do with the s3 buckets being in a certain region, but ours is Global and I don't know what else is different.
Noah Ellman
@noah-ellman
So the new serverless supports cloudfront events and lambda edge functions, yes. Behind the scenes the cloudfront distribution is created by serverless. I can't seem to find any way at all to specify any customizations to the cloudfront distribution. I need to add an ACM certificate to the distribution, but if I do that manually, serverless will just remove it on next deploy.