Questions tagged [aws-serverless]

AWS Serverless implementation with API Gateway, Lambda functions, CloudFormation and SAM (Serverless Application Model).

Serverless computing allows you to build and run applications and services without thinking about servers. Serverless applications don't require you to provision, scale, and manage any servers.

You can build them for nearly any type of application or backend service, and everything required to run and scale your application with high availability is handled for you.

Links

  1. Serverless Computing and Applications

  2. AWS Serverless Application Repository

  3. Serverless AWS Functions documentation

1217 questions
4
votes
2 answers

Does SAM Lambda auto-versioning using AutoPublishAlias work when code URL changes but the code that it points to doesn't?

Simple question: Does SAM Lambda auto-versioning using AutoPublishAlias work for AWS::Serverless::Function when code CodeUri changes but the actual code that it points to doesn't? Background We are deploying several Lambda@Edge functions using the…
4
votes
1 answer

How to enable "ApiKeyRequired" property in SAM without explicit swagger definition?

In cloudformation, AWS::ApiGateway::Method has a boolean property ApiKeyRequired . How can i achieve the same in SAM ? I know that we can enable using explicit swagger Configuration. which is like this { "swagger": "2.0", "info": { …
Private
  • 1,661
  • 1
  • 20
  • 51
4
votes
2 answers

Enable CORS in AWS API Gateway with aws-cli

I'm currently writing script to programmatically enable CORS once a resource is added to an API Endpoint on AWS API Gateway. After exploring the put-integration-response function for hours. I almost got a breakthrough, but here is an error I'm…
user9688389
4
votes
1 answer

Aurora serverless not connecting from CLI and mysql workbrench

I make a Aurora serverless cluster and trying to connect it from command line using command mysql --user=mightycpa --password -h serverless.cluster-xxxxxx but it can't connect and gives an error ERROR 2003 (HY000): Can't connect to MySQL server I…
4
votes
1 answer

How to set Cloudformation full access from the serverless cli

I have programatic access to an aws account and when I try to deploy the a basic function, I get: User: arn:aws:iam::xxxx:user/myname is not authorized to perform: cloudformation:DescribeStacks on resource:…
4
votes
1 answer

Rows are not getting added on AWS Kinesis analytics In-application SQL stream from Kinesis data stream

I am writing data to a kinesis stream on the invocation of a dynamoDBTrigger. This stream is configured as the input stream to a kinesis analytics application. I have a lambda preprocessor configured on the kinesis stream that logs the data that is…
4
votes
1 answer

AWS API Gateway with custom authorizer returns AuthorizerConfigurationException

I have an AWS API Gateway that uses a custom authorizer, and if the request is authorized, it triggers another lambda function. Since yesterday, whenever I call the API, I get an error saying { "message": null } and a 500 Internal Server Error. In…
Gasp0de
  • 1,199
  • 2
  • 12
  • 30
4
votes
3 answers

Add AWS::Route53::RecordSet DnsRecord to a serverless Cloudfront Distribution

I found this on how to associate a route53 dns record with a S3 bucket in a serverless.yml file. I've tried to adapt that to the case of deploying a cloudfront distrib DnsRecord: Type: "AWS::Route53::RecordSet" Properties: AliasTarget: …
bebbi
  • 2,489
  • 3
  • 22
  • 36
4
votes
2 answers

How to define sorting key in serverless.yaml

I am new to serverless, AWS and lambda function. I want to know how to define a sorting key into serverless.yaml file and how we can sort data ASC or DEC order when we fetch the data from DynamoDB table? I also want to know that suppose I have user…
4
votes
1 answer

How do you package up a visual studio aws serverless project?

I'm trying to figure out if there is a way I can package up an aws serverless project in an automated way so that we can split our build and release pipeline up. Using the dotnet lambda command line tools, I can see there is a dotnet lambda package…
Kevin Smith
  • 13,746
  • 4
  • 52
  • 77
3
votes
1 answer

Can AWS RDS Aurora custom endpoint combine Writer and Reader instance?

In AWS RDS Aurora Serverless v2, I can create a custom endpoint in Regional Cluster for Writer Instance and Reader Instance, but I was wondering is there any load balancing if I doing this way? Thanks
3
votes
1 answer

SST: Deploy only some stacks

Here out IaC project structure: ./ ├── cdk.context.json ├── package.json ├── package-lock.json ├── README.md ├── sst.json └── stacks ├── common │   ├── Msk.js │   └── Vpc.js ├── index.js ├── posiciones │   ├── Consumer.js …
Jordi
  • 20,868
  • 39
  • 149
  • 333
3
votes
1 answer

Next JS and AWS Amplify "No current user" at getServerSideProps

While trying to make an API call from getServerSideProps, I am getting "No current user" error. This is an AWS Amplify+ NextJs project. The API is a REST API protected with AWS Cognito authentication. export async function getServerSideProps({req})…
3
votes
1 answer

How to fix Unresolved resource dependencies [ApiGatewayRestApi] in the Resources block of the template

I am trying to set the ApiGatewayRestApi to an environment variable. I am getting the following error while trying to deploy using "sls deploy" : The CloudFormation template is invalid: Template format error: Unresolved resource dependencies…
Ben Jonson
  • 565
  • 7
  • 22
3
votes
1 answer

Reduce the AWS lambda node function size

I have used serverless-webpack npm module to reduce the size of my nodeJs serverless application but apparently the size is gtting increased from 15M to 85MB with usage of this packag and i am unable to deploy to lambda. Do we have any other ways to…