# Serverless Architectures

**URL:** https://forum.serverless.com/c/serverless-architectures/6.md?page=2

[Latest](https://forum.serverless.com/latest.md) · [Categories](https://forum.serverless.com/categories.md) · [Tags](https://forum.serverless.com/tags.md)

**Page:** 3

---

## [Creating EC2 instance directly with serverless](https://forum.serverless.com/t/creating-ec2-instance-directly-with-serverless/14877)

<div class="topic-metadata">

**Author:** [@Kashyapm94](https://forum.serverless.com/u/Kashyapm94)\
**Replies:** 2\
**Last updated:** [May 6, 2021, 12:32pm UTC](https://forum.serverless.com/t/creating-ec2-instance-directly-with-serverless/14877 "2021-05-06T12:32:46Z")

</div>

Hey guys, I was wondering if it is possible to create and deploy an EC2 instance directly via the serverless.yml file. I tried looking for it online, but I haven’t found any resources for it. The only resource I found …

---

## [Break down the Google Cloud Functions costs into each individual function?](https://forum.serverless.com/t/break-down-the-google-cloud-functions-costs-into-each-individual-function/14931)

<div class="topic-metadata">

**Author:** [@josue0](https://forum.serverless.com/u/josue0)\
**Replies:** 0\
**Last updated:** [May 5, 2021, 10:23pm UTC](https://forum.serverless.com/t/break-down-the-google-cloud-functions-costs-into-each-individual-function/14931 "2021-05-05T22:23:11Z")

</div>

Hi everybody!!! Has anyone ever needed to break down the Google Cloud Functions costs into each individual function? I was trying to do that with no luck. I know I can probably estimate the cost based on metrics/logs a…

---

## [Golang + MongoDB serverless codes for OpenWhisk and AWS](https://forum.serverless.com/t/golang-mongodb-serverless-codes-for-openwhisk-and-aws/12707)

<div class="topic-metadata">

**Author:** [@jonee](https://forum.serverless.com/u/jonee)\
**Replies:** 2\
**Last updated:** [April 14, 2021, 10:48pm UTC](https://forum.serverless.com/t/golang-mongodb-serverless-codes-for-openwhisk-and-aws/12707 "2021-04-14T22:48:00Z")

</div>

I have shared the codes for the backend of a project starter that I am working. It is in Golang and uses MongoDB. Deployment to OpenWhisk (IBM Cloud) and AWS supported. Codes are in https://gitlab dot com/jonee316/acl…

---

## [Serverless with deployment bucket in cross account](https://forum.serverless.com/t/serverless-with-deployment-bucket-in-cross-account/8264)

<div class="topic-metadata">

**Author:** [@learningneverends](https://forum.serverless.com/u/learningneverends)\
**Replies:** 2\
**Last updated:** [April 3, 2021, 9:43pm UTC](https://forum.serverless.com/t/serverless-with-deployment-bucket-in-cross-account/8264 "2021-04-03T21:43:04Z")

</div>

HI All I am trying to setup my serverless yaml code to use some fixed bucket. I understand we can achieve this by using the below configuration deploymentBucket: name: nameofthebucket serverSideEncryption: AES256 Ho…

---

## [Desperately Seeking Guidance on Existing Infrastructure](https://forum.serverless.com/t/desperately-seeking-guidance-on-existing-infrastructure/14622)

<div class="topic-metadata">

**Author:** [@jbkc85](https://forum.serverless.com/u/jbkc85)\
**Replies:** 0\
**Last updated:** [April 2, 2021, 6:59pm UTC](https://forum.serverless.com/t/desperately-seeking-guidance-on-existing-infrastructure/14622 "2021-04-02T18:59:30Z")

</div>

Hi all, I am brand new to serverless and more specifically - serverless components. I am also on the Operation side of things, so rather than being just ‘developing’ on the code, I am also extremely concerned about the…

---

## [S3 + CloudFront: Lambda function with authentication for X users](https://forum.serverless.com/t/s3-cloudfront-lambda-function-with-authentication-for-x-users/14167)

<div class="topic-metadata">

**Author:** [@new230](https://forum.serverless.com/u/new230)\
**Replies:** 1\
**Last updated:** [March 23, 2021, 10:09pm UTC](https://forum.serverless.com/t/s3-cloudfront-lambda-function-with-authentication-for-x-users/14167 "2021-03-23T22:09:07Z")

</div>

Hello, I need to password protect static website running behind S3 + CloudFront. According to Google Lambda@Edge is the best (?) for it. The problem is that those users (\>50) are external users and are not integrated …

---

## [Getting new API ID and automatically inserting it in React application to make requests](https://forum.serverless.com/t/getting-new-api-id-and-automatically-inserting-it-in-react-application-to-make-requests/14373)

<div class="topic-metadata">

**Author:** [@bt14381](https://forum.serverless.com/u/bt14381)\
**Replies:** 0\
**Last updated:** [March 14, 2021, 2:32pm UTC](https://forum.serverless.com/t/getting-new-api-id-and-automatically-inserting-it-in-react-application-to-make-requests/14373 "2021-03-14T14:32:05Z")

</div>

I want to automate deployment of my full stack: a react single page front end served from s3 with a serverless, lambda + api gateway + dynamodb etc. I want to avoid having to manually enter the new api id in each of the…

---

## [callbackWaitsForEmptyEventLoop and cached connections/pools?](https://forum.serverless.com/t/callbackwaitsforemptyeventloop-and-cached-connections-pools/4362)

<div class="topic-metadata">

**Author:** [@walshe](https://forum.serverless.com/u/walshe)\
**Replies:** 1\
**Last updated:** [March 11, 2021, 10:22pm UTC](https://forum.serverless.com/t/callbackwaitsforemptyeventloop-and-cached-connections-pools/4362 "2021-03-11T22:22:53Z")

</div>

I read a few articles on calling rds from lambdas and how to use ‘context.callbackWaitsForEmptyEventLoop = false’ in order to try to hand on to cached connections in warm lambdas. I have read some that advise to use a c…

---

## [AIOps, tools available. Which one is actually good?](https://forum.serverless.com/t/aiops-tools-available-which-one-is-actually-good/11915)

<div class="topic-metadata">

**Author:** [@jfbaro](https://forum.serverless.com/u/jfbaro)\
**Replies:** 2\
**Last updated:** [March 9, 2021, 9:34pm UTC](https://forum.serverless.com/t/aiops-tools-available-which-one-is-actually-good/11915 "2021-03-09T21:34:03Z")

</div>

Hi there, Has anyone here had worked with any of the AIOps (with auto-remediation) tools out there? It seems to me that a 100% serverless architecture would be even more suitable for AIOps (auto-remediation as well). No…

---

## [Ibm cloud functions and mongodb atlas](https://forum.serverless.com/t/ibm-cloud-functions-and-mongodb-atlas/12482)

<div class="topic-metadata">

**Author:** [@jonee](https://forum.serverless.com/u/jonee)\
**Replies:** 3\
**Last updated:** [March 10, 2021, 1:25am UTC](https://forum.serverless.com/t/ibm-cloud-functions-and-mongodb-atlas/12482 "2021-03-10T01:25:40Z")

</div>

I am wondering if anyone has managed to make their ibm cloud openwhisk functions connect to mongodb atlas as I do not see any example? I am able to connect to my free tier cluster from my local development. My aws lambd…

---

## [AWS Organizations Support](https://forum.serverless.com/t/aws-organizations-support/12449)

<div class="topic-metadata">

**Author:** [@bklim14](https://forum.serverless.com/u/bklim14)\
**Replies:** 1\
**Last updated:** [March 8, 2021, 10:21pm UTC](https://forum.serverless.com/t/aws-organizations-support/12449 "2021-03-08T22:21:49Z")

</div>

Will serverless framework support cross-account deployments of resources soon? This is for multi account microservices having just one shared API gateway on another account.

---

## [Is it possible to control which paths in apigateway a cognito user is allowed to call?](https://forum.serverless.com/t/is-it-possible-to-control-which-paths-in-apigateway-a-cognito-user-is-allowed-to-call/3532)

<div class="topic-metadata">

**Author:** [@ObiWan](https://forum.serverless.com/u/ObiWan)\
**Replies:** 6\
**Last updated:** [March 8, 2021, 11:51pm UTC](https://forum.serverless.com/t/is-it-possible-to-control-which-paths-in-apigateway-a-cognito-user-is-allowed-to-call/3532 "2021-03-08T23:51:03Z")

</div>

Hi. Ive noticed that I can put my users into groups. Is there an easy way to let some users access admin paths in apigateway and have “normal” users only be able to access other paths? I have this working with a custom…

---

## [Can you use serverless.yml in azure to deploy golang azure functions](https://forum.serverless.com/t/can-you-use-serverless-yml-in-azure-to-deploy-golang-azure-functions/14254)

<div class="topic-metadata">

**Author:** [@cisco](https://forum.serverless.com/u/cisco)\
**Replies:** 0\
**Last updated:** [March 3, 2021, 8:22pm UTC](https://forum.serverless.com/t/can-you-use-serverless-yml-in-azure-to-deploy-golang-azure-functions/14254 "2021-03-03T20:22:49Z")

</div>

I used serverless.yml with aws lambdas and golang no problem. I was wondering if the yaml files i created for AWS can be easily ported for azure. the problem being i noticed Azure doesn’t support golang azure functions…

---

## [What is your build pipeline?](https://forum.serverless.com/t/what-is-your-build-pipeline/13090)

<div class="topic-metadata">

**Author:** [@jfbaro](https://forum.serverless.com/u/jfbaro)\
**Replies:** 1\
**Last updated:** [February 28, 2021, 10:28pm UTC](https://forum.serverless.com/t/what-is-your-build-pipeline/13090 "2021-02-28T22:28:29Z")

</div>

Hi there, I have been looking for a better CI/CD pipeline for Serverless Architectures (AWS). I would like a more “autonomous” and handsfree service where we send our code (with some extra config/YAML) and it comes up …

---

## [APIs are not deploying Prod stage which can be seen in Resources](https://forum.serverless.com/t/apis-are-not-deploying-prod-stage-which-can-be-seen-in-resources/13959)

<div class="topic-metadata">

**Author:** [@issacthoma](https://forum.serverless.com/u/issacthoma)\
**Replies:** 0\
**Last updated:** [February 5, 2021, 7:46am UTC](https://forum.serverless.com/t/apis-are-not-deploying-prod-stage-which-can-be-seen-in-resources/13959 "2021-02-05T07:46:11Z")

</div>

We are having serverless architecture and we are using .Net core (netcoreapp2.1 framework) and AWS In order to create API gateway and deploy APIs we are using below snippet in CloudFormation. Earlier we had not added Op…

---

## [httpApi endpoints not published when indent with space=2 in serverless.yml](https://forum.serverless.com/t/httpapi-endpoints-not-published-when-indent-with-space-2-in-serverless-yml/11064)

<div class="topic-metadata">

**Author:** [@ilanc](https://forum.serverless.com/u/ilanc)\
**Replies:** 3\
**Last updated:** [January 29, 2021, 3:54am UTC](https://forum.serverless.com/t/httpapi-endpoints-not-published-when-indent-with-space-2-in-serverless-yml/11064 "2021-01-29T03:54:23Z")

</div>

I posted a query about httpApis a few minutes ago but can’t find that post anymore - weird? Anyway the problem was that my serverless.yml was incorrect, i had: functions: hello: handler: hello.get events: …

---

## [I was wondering how to make SLS skip adding a random string](https://forum.serverless.com/t/i-was-wondering-how-to-make-sls-skip-adding-a-random-string/13765)

<div class="topic-metadata">

**Author:** [@josoroma](https://forum.serverless.com/u/josoroma)\
**Replies:** 0\
**Last updated:** [January 16, 2021, 11:41pm UTC](https://forum.serverless.com/t/i-was-wondering-how-to-make-sls-skip-adding-a-random-string/13765 "2021-01-16T23:41:43Z")

</div>

Hi! I was wondering how to make SLS skipping appending a random string, I have been trying this two approaches with no luck: First approach falls on a circular reference error, second one falls on appending the strin…

---

## [Best Practice Question: API call, Lambda.Invoke, or require()?](https://forum.serverless.com/t/best-practice-question-api-call-lambda-invoke-or-require/873)

<div class="topic-metadata">

**Author:** [@justin](https://forum.serverless.com/u/justin)\
**Replies:** 15\
**Last updated:** [December 22, 2020, 2:32am UTC](https://forum.serverless.com/t/best-practice-question-api-call-lambda-invoke-or-require/873 "2020-12-22T02:32:09Z")

</div>

Apologies if this is really basic, but I'd love to not architect this incorrectly from the start :slight\_smile: When, in a serverless/microservices world, what's the best way to interact with other functions in differe…

---

## [Serverless used for HIPAA](https://forum.serverless.com/t/serverless-used-for-hipaa/8108)

<div class="topic-metadata">

**Author:** [@jgwinner](https://forum.serverless.com/u/jgwinner)\
**Replies:** 5\
**Last updated:** [December 4, 2020, 8:59am UTC](https://forum.serverless.com/t/serverless-used-for-hipaa/8108 "2020-12-04T08:59:35Z")

</div>

Hello Has anyone used Serverless to manage/create a HIPAA compliant application? We already have the BAA, but the Amazon recommended architectures build a very large back end infrastructure, and we’re just in developme…

---

## [Social Login Example with Cognito User Pool vs Identity Pool](https://forum.serverless.com/t/social-login-example-with-cognito-user-pool-vs-identity-pool/13296)

<div class="topic-metadata">

**Author:** [@OndeVai](https://forum.serverless.com/u/OndeVai)\
**Replies:** 0\
**Last updated:** [December 3, 2020, 5:51pm UTC](https://forum.serverless.com/t/social-login-example-with-cognito-user-pool-vs-identity-pool/13296 "2020-12-03T17:51:54Z")

</div>

Hello, this is more a question about the serverless-stack tutorial. I’m trying to piece together an end-to-end solution for working with Cognito User Pools and Facebook login (https://docs.aws.amazon.com/cognito/latest/…

---

## [Is there any Examples to handle Authorization & Authentication for Mobile Apps](https://forum.serverless.com/t/is-there-any-examples-to-handle-authorization-authentication-for-mobile-apps/718)

<div class="topic-metadata">

**Author:** [@Tazer](https://forum.serverless.com/u/Tazer)\
**Replies:** 1\
**Last updated:** [November 4, 2016, 3:29pm UTC](https://forum.serverless.com/t/is-there-any-examples-to-handle-authorization-authentication-for-mobile-apps/718 "2016-11-04T15:29:26Z")

</div>

Hello, Is there any example for handle authorization & authentication for Mobile App. Cause I have looked into https://github.com/laardee/serverless-authentication-boilerplate. But that's more toward Web. As it uses a …

---

## [Webpack Bundle vs. Layer](https://forum.serverless.com/t/webpack-bundle-vs-layer/12249)

<div class="topic-metadata">

**Author:** [@juuyan](https://forum.serverless.com/u/juuyan)\
**Replies:** 1\
**Last updated:** [October 15, 2020, 8:52pm UTC](https://forum.serverless.com/t/webpack-bundle-vs-layer/12249 "2020-10-15T20:52:13Z")

</div>

Hi all, which way do you use to optimize the lambda functions? Extracting dependencies into layers seem to be an approach recommended by AWS, but it would upload the whole modules. While webpack bundle would only keep t…

---

## [Serverless Custom Resources vs AWS Cloudformation Resource Block](https://forum.serverless.com/t/serverless-custom-resources-vs-aws-cloudformation-resource-block/12293)

<div class="topic-metadata">

**Author:** [@FatCat](https://forum.serverless.com/u/FatCat)\
**Replies:** 1\
**Last updated:** [October 15, 2020, 8:51pm UTC](https://forum.serverless.com/t/serverless-custom-resources-vs-aws-cloudformation-resource-block/12293 "2020-10-15T20:51:35Z")

</div>

Hello all. So, I’m pretty new to Serverless and AWS CloudFormation in general, and I hopefully have a quick conceptual question that I’m trying to clarify and reconcile. As a bit of a context, my background is in data s…

---

## [Is serverless rest APIs good for Big project](https://forum.serverless.com/t/is-serverless-rest-apis-good-for-big-project/10238)

<div class="topic-metadata">

**Author:** [@Gourav\_gond07](https://forum.serverless.com/u/Gourav_gond07)\
**Replies:** 2\
**Last updated:** [September 30, 2020, 3:27am UTC](https://forum.serverless.com/t/is-serverless-rest-apis-good-for-big-project/10238 "2020-09-30T03:27:30Z")

</div>

I was thinking and searching but I am not able to find answer. Should I go with serverless? If yes So I am not able to find how to reuse my code. And how to manage all that functions

---

## [Transaction Log from DynamoDB Streams](https://forum.serverless.com/t/transaction-log-from-dynamodb-streams/12163)

<div class="topic-metadata">

**Author:** [@siniann](https://forum.serverless.com/u/siniann)\
**Replies:** 1\
**Last updated:** [September 26, 2020, 9:11pm UTC](https://forum.serverless.com/t/transaction-log-from-dynamodb-streams/12163 "2020-09-26T21:11:39Z")

</div>

What is the best recommended pattern to maintain a transaction log history from a dynamoDB stream?( I need to save the transaction logs of the dynamodb table for further processing to implement something similar to the …

---

## [What is the largest java application that can be run on aws lambda?](https://forum.serverless.com/t/what-is-the-largest-java-application-that-can-be-run-on-aws-lambda/12492)

<div class="topic-metadata">

**Author:** [@unreliable](https://forum.serverless.com/u/unreliable)\
**Replies:** 0\
**Last updated:** [September 7, 2020, 9:21am UTC](https://forum.serverless.com/t/what-is-the-largest-java-application-that-can-be-run-on-aws-lambda/12492 "2020-09-07T09:21:24Z")

</div>

Context: I have a huge java monolith application running on EC2 servers, and there is a use-case where there can be a burst in requests to the app once in a while - and when there is, the EC2 servers cannot handle the lo…

---

## [Can people expect Cold Start to disappear in the future?](https://forum.serverless.com/t/can-people-expect-cold-start-to-disappear-in-the-future/3926)

<div class="topic-metadata">

**Author:** [@jfbaro](https://forum.serverless.com/u/jfbaro)\
**Replies:** 1\
**Last updated:** [June 7, 2020, 4:47am UTC](https://forum.serverless.com/t/can-people-expect-cold-start-to-disappear-in-the-future/3926 "2020-06-07T04:47:52Z")

</div>

Hello there, Can we assume in the short term (1 - 3 years) cloud providers will figure out a way of getting rid of cold start for good? Even on VPC? Unikernel and container technologies are evolving so fast that I woul…

---

## [Does every user's request to functions create a new container/unikernel?](https://forum.serverless.com/t/does-every-users-request-to-functions-create-a-new-container-unikernel/11710)

<div class="topic-metadata">

**Author:** [@Aslanpour](https://forum.serverless.com/u/Aslanpour)\
**Replies:** 2\
**Last updated:** [September 3, 2020, 11:34pm UTC](https://forum.serverless.com/t/does-every-users-request-to-functions-create-a-new-container-unikernel/11710 "2020-09-03T23:34:00Z")

</div>

Hi everyone, I am still confused if Lambda is creating and running a new container/unikernel instance for every request to the function? I see that the instance will wait for a short period of time to serve upcoming req…

---

## [How to handle API Gateway timeout?](https://forum.serverless.com/t/how-to-handle-api-gateway-timeout/11233)

<div class="topic-metadata">

**Author:** [@NicolasGuary](https://forum.serverless.com/u/NicolasGuary)\
**Replies:** 1\
**Last updated:** [August 30, 2020, 1:19pm UTC](https://forum.serverless.com/t/how-to-handle-api-gateway-timeout/11233 "2020-08-30T13:19:28Z")

</div>

Hello everyone, I am currently working on an application doing heavy data jobs and I am facing an issue using API Gateway routes. For example, I have a Lambda running an Athena query and then calling an API for each ro…

---

## [Does Lambda allow for Reusability?](https://forum.serverless.com/t/does-lambda-allow-for-reusability/10196)

<div class="topic-metadata">

**Author:** [@YizYah](https://forum.serverless.com/u/YizYah)\
**Replies:** 1\
**Last updated:** [August 30, 2020, 1:21pm UTC](https://forum.serverless.com/t/does-lambda-allow-for-reusability/10196 "2020-08-30T13:21:51Z")

</div>

I am new to Lambda and serverless. My initial reaction was extreme excitement about every Lambda being self-contained. But I’m realizing that this encapsulation apparently comes with a drawback–unlike with a server app…

[Previous page](https://forum.serverless.com/c/serverless-architectures/6.md?page=1)

[Next page](https://forum.serverless.com/c/serverless-architectures/6.md?page=3)
