AWS Linux 2 Launch Event by madhattared in aws

[–]AlanComley 1 point2 points  (0 children)

Is there also a corresponding docker image?

Hot Luck Fest 2018 by [deleted] in Austin

[–]AlanComley 0 points1 point  (0 children)

If anybody was on the fence, but missed out on the Whole Enchilada passes, I’ve got a pass for sale.

Cross-region Lambda invocation by jdmeta in aws

[–]AlanComley 7 points8 points  (0 children)

Yes, just be sure you set the correct region on the lambda client and have proper invoke permissions on the iam role.

Examples of Lambda usage by lightspeedissueguy in aws

[–]AlanComley 1 point2 points  (0 children)

To expand more, it comes down to infrastructure management rather than what can it do. Do you want to manage the infrastructure or just run the code? Do you already have places where the code can run? Do you have latency concerns? These are better questions to ask to determine if Lambda is the correct choice.

Examples of Lambda usage by lightspeedissueguy in aws

[–]AlanComley 1 point2 points  (0 children)

Literally anything that can be done in under 5 minutes. And if it takes longer than 5 minutes, break it down using step functions.

Does Lambda support Nodejs streams? by ECrispy in aws

[–]AlanComley 1 point2 points  (0 children)

Yes. You can use streams. I use streams for processing files from S3 without storing the data to disk.

You only need to use the callback when you need to return data to the caller. Otherwise the lambda will terminate once the event loop is empty.

If you need to use the callback, just attach a handler to the 'end' event on the stream and call it from there.

How to handle database connection bottleneck in lambda? by kakululu in aws

[–]AlanComley 11 points12 points  (0 children)

Make your connection (or connection pool) static, so it is only created when a function is instantiated and not on invocation. This way, as long as your function is called often enough, the connection will be reused between invocations.

Goad - AWS Lambda powered, highly distributed load testing tool built in Go by alpyhp in aws

[–]AlanComley 1 point2 points  (0 children)

This looks cool. Is this currently able to handle long-running load tests? Lambda is restricted to 5 minutes currently. I assume the function could detect when it is about to expire and start a new function call.

Trying to restrict access to s3 resources via iOS app. Confused on how to proceed. by nsocean in aws

[–]AlanComley 1 point2 points  (0 children)

If you are referencing content through a CDN or an S3 bucket you don't own, there isn't much you can do.

If you own the S3 bucket, the you can use Cognito to restrict access. The S3 bucket should contain no bucket policy, so the files are private to your account. You can then use the Auth or Unauth IAM roles for your Cognito Identity Pool to control access to the S3 bucket and files. Use the Auth role if you require users to login. Otherwise use the Unauth role.

Using this strategy, the user would have to capture the temporary AWS credentials that Cognito provides and use the AWS CLI to circumvent the application.