Open in app

Sign in

Write

Sign in

Fabio Gollinucci
Fabio Gollinucci

13 Followers

Home

About

3 days ago

Telegram bot powered by Amazon Bedrock

The time is coming, the public launch of Amazon Bedrock finally let me play with ML in a professional way, without requiring too much knowledge about that topic. The following is a Serverless integration for connecting a Telegram bot with Amazon Bedrock Setup I started requesting access to some models from…

AWS

5 min read

Telegram bot powered by Amazon Bedrock
Telegram bot powered by Amazon Bedrock
AWS

5 min read


Nov 2

Testing Lambda functions with Vitest

Testing serverless projects locally can be a pain. Separating business logic from calls to AWS services or external endpoints reduces the need to run the entire function locally. The first thing you need to do to add a test suite to your project is installing Vitest: npm install --save-dev vitest …

AWS

4 min read

AWS

4 min read


Oct 24

Serverless dynamic scheduler

One of the critical parts of a serverless application is the operations scheduling. Sometimes a simple cron expression defined in a SAM template may be too simplistic as a solution. In a complex environment the application cloud requires to schedule an event in the future, maybe to send an abandoned…

AWS

4 min read

Serverless Dynamic Scheduler
Serverless Dynamic Scheduler
AWS

4 min read


Jul 3

Lambda hexagonal architecture variation

Given the large number of blog articles and conference talks on the subject I wanted to do some testing myself. I started from aws-samples/aws-lambda-hexagonal-architecture repository and related blog post developing-evolutionary-architecture-with-aws-lambda. I then started adding APIs methods, events, queues and tables in order to understand how the solution scaled. Some warm…

AWS

7 min read

Lambda hexagonal architecture variation
Lambda hexagonal architecture variation
AWS

7 min read


Jun 11

Nuxt3 on Lambda

Since the Nuxt version 3 the server side engine is managed by Nitro. This engine (based on h3) can handle a variety of environments including AWS Lambda. Lambda integration The integration directly handles the Lambda function event that comes from API Gateway executing Nuxt server side rendering. HttpApi: Type: AWS::Serverless::HttpApi HttpApiFunction…

Nuxt 3

5 min read

Nuxt3 on Lambda
Nuxt3 on Lambda
Nuxt 3

5 min read


Jun 6

Build Lambda function with Makefile

Add a Metadata property to the function that you want to build in a custom way: LambdaEdgeFunction: Type: AWS::Serverless::Function Properties: [...] Metadata: BuildMethod: makefile Inside the Makefile add a command named as the function resource is prefixed by "build-": build-LambdaEdgeFunction: npm ci NITRO_PRESET=node npx nuxt build cp -r .output/ $(ARTIFACTS_DIR)/.output/ cp lambda.js $(ARTIFACTS_DIR)/lambda.js

AWS

1 min read

AWS

1 min read


Jun 6

Greengrass Nucleus Telemetry Data

Just created a very simple AWS integration that collect Greengrass Nucleus telemetry data as CloudWatch metrics. This integration will deploy a Lambda function connect to IoT Core MQTT topic where NucleusEmitter component send telemetry data: { "mqttTopic": "greengrass/MyDeviceName", "telemetryPublishIntervalMs": 300000 } The deployed Lambda function put metrics data to CloudWatch using AWS NodeJS SDK:

AWS

1 min read

Greengrass Nucleus Telemetry Data
Greengrass Nucleus Telemetry Data
AWS

1 min read


Jun 6

EventBridge CloudFormation Events

It’s possible to use EventBridge event “CloudFormation Resource Status Change” to execute code when the CloudFormation stack itself is created. This can be done describing the EventBridge event rule for a Lambda function that match the emitted event: PostScript: Type: AWS::Serverless::Function Properties: FunctionName: !Sub "${AWS::StackName}-post-script"…

AWS

1 min read

EventBridge CloudFormation Events
EventBridge CloudFormation Events
AWS

1 min read


Jun 6

CloudFormation EC2 Volume Persistence

It’s a common requirements, for application and general instance setup, to persist a disk portion. Setting aside the solution via EFS, if not require from access multiple instance (ASG), an EBS volume does its job anyway. Starting from a SAM template that describe an EBS volume: DataVolume: Type: AWS::EC2::Volume…

AWS

2 min read

CloudFormation EC2 Volume Persistence
CloudFormation EC2 Volume Persistence
AWS

2 min read


Jun 6

Vue3 VModel

The usage in a Vue component: <CustomInput v-model="searchText" /> The component: <script> export default { props: ['modelValue'], emits: ['update:modelValue'], computed: { value: { get() { return this.modelValue }, set(value) { this.$emit('update:modelValue', value) } } } } </script> <template> <input v-model="value" /> </template> The “modelValue” placeholder is for the v-model attribute. It can be any other property, for example “title”:

Vue 3

1 min read

Vue 3

1 min read

Fabio Gollinucci

Fabio Gollinucci

13 Followers

Backend Developer & Cloud Architect @ Bitbull

Following
  • Valerio Mellini

    Valerio Mellini

  • Andrii Shykhov

    Andrii Shykhov

  • Gareth Stretton

    Gareth Stretton

  • Jorge Galarza

    Jorge Galarza

  • Nathan Brantley

    Nathan Brantley

See all (8)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams