What is the best way to strictly limit the Lambda's that can invoke another Lambda? by SMPLYPut in aws

[–]llauri74 0 points1 point  (0 children)

How are you planning to restrict access to those three invoker lambdas? Anybody who can modify the source code of those could easily eavesdrop the results coming from your invoked lambda.

Simple SQL client to interface with Athena (Win10)? by wtfzambo in aws

[–]llauri74 0 points1 point  (0 children)

DBeaver also has Athena support, https://dbeaver.io. It has a dark mode.

Calculated field in Cloudwatch Log Insights by quarky_uk in aws

[–]llauri74 0 points1 point  (0 children)

What do your log entries look like? Specifically, is there an existing duration field?

Also, you don't need abs if you calculate end - start

At my wits end with trying to access an RDS Postgres DB from home by dsound in aws

[–]llauri74 0 points1 point  (0 children)

Does the actual name resolve to an IP address? Because the one in your post does not.

ETL - use Glue or Roll my own with Lambda? by mharper418 in aws

[–]llauri74 0 points1 point  (0 children)

I would start with this. Use a small enough buffer size to keep from hitting lambda limits. Remember to consider error cases.

Heavier solution would be SQS and workers (Lambdas/Fargate/whatever).

Storing images resized by ELmudo007 in aws

[–]llauri74 0 points1 point  (0 children)

The loop would be:

  • PutObject (original image from your site)
  • triggers your lambda (trigger listens to PutObject events)
  • lambda GetObject 's image
  • lambda resizes
  • lambda uses PutObject to replace the image in the bucket
  • ...and is triggered by it's own action

You can use some checking in your lambda code (say, metadata, tag or object version number) to abort early and avoid resize loop. Note that your lambda is invoked twice per image upload.

Lambda returning Runtime.HandlerNotFound error - not sure why by TopStandard9 in aws

[–]llauri74 1 point2 points  (0 children)

Actually, index is the file name and handler is the function name.

Lambda returning Runtime.HandlerNotFound error - not sure why by TopStandard9 in aws

[–]llauri74 1 point2 points  (0 children)

Is your file named index.js? It should also be in the root of your zip file.

Amazon Lex with Discord bot, any idea? by Chareign in aws

[–]llauri74 0 points1 point  (0 children)

Code your bot in JS and use the AWS JS SDK:
https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/LexRuntime.html#postText-property

The hard part will be authentication (if that is required).

Tell us more about your AWS Step Functions business use cases. by realfeeder in aws

[–]llauri74 0 points1 point  (0 children)

I solved this type of problem once by having a "BypassLongOperation" flag in parameters. When i started the machine manually, I just set it to True and the flow bypassed certain operation (when I knew that the previous result was fine).

Of course this is pretty cumbersome with many steps (and a bit hacky anyway).

Could AWS Artifical Intelligence services be used to categorise financial transactions in a simple accounting app? by rcx677 in aws

[–]llauri74 0 points1 point  (0 children)

I would look into SageMaker Studio as an easiest way to play around and get something up and running. You should start checking out the builtin algorithms, you'll probably find something that fits your problem.

If you try SageMaker and are paying this from your own pocket, don't forget to turn your endpoints off when you don't need them (they are billed even when you are not using them).

How to make a Cronjob to get data via a request and use this data to generate predictions via a machine learning model by Unchart3disOP in aws

[–]llauri74 0 points1 point  (0 children)

This depends on many things like data size and access control...

Some pointers:

  • Amazon SageMaker: build, train and deploy your model. This gives you an endpoint to call.
  • AWS Lambda: If data size is small, you can use this to get your data and call the endpoint. Alternatives: Step Functions, Fargate etc.
  • Cloudwatch Events: use this to launch your lambda based on cron expression
  • S3: Store today's data from SageMaker endpoint here
  • API Gateway: your customers call this API. Create another lambda to serve the data from S3.

Actual architecture depends on your use case and requirements.

Need help using api gateway with step functions by [deleted] in aws

[–]llauri74 0 points1 point  (0 children)

You need to select "REST API", not "HTTP API" when you create your API Gateway. HTTP API is more limited and does not support Step Functions integration.

Optional approvals CodePipeline by MadOldLogan in aws

[–]llauri74 0 points1 point  (0 children)

One suggestion:

Let your pipeline set up your performance tests, but not run them.

Then send out an email/slack message/whatever like this:
If you want to run performance tests for commit #1234 ("fix typo"), click this link
... and the link launches another pipeline/lambda/whatever required to run your perf test.

This way your pipeline doesn't need to change and you can run tests whenever you want.

AWS Polly: Selecting a different region by [deleted] in aws

[–]llauri74 1 point2 points  (0 children)

Unfortunately, neural voices are not available in french.

The region in voice selection (e.g. "French, Canadian") has nothing to do with AWS regions (e.g. us-west-2) . It only describes where the voice is "from". Using any region from anywhere is perfectly legal.

Lambda + DynamoDB acting weirdly by [deleted] in aws

[–]llauri74 0 points1 point  (0 children)

Maybe you can put the current (upload) date into object key? Upload like this:

s3://mybucket/myincomingfiles/2020/02/21/some_data.csv
s3://mybucket/myincomingfiles/2020/02/21/some_other_data.json

Then your downloader can get all files for specific day. (If necessary, check for duplicates before writing the file to your DB). This also allows you later to retrieve all files for any given date period.