🆕 Write your Lambda functions using Typescript with AWS SAM

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024
  • You can use the Node.js runtime to run TypeScript code in AWS Lambda. Because Node.js doesn't run TypeScript code natively, you must first transpile your TypeScript code into JavaScript. Then, use the JavaScript files to deploy your function code to Lambda.
    In this video I want to show you how to do that using AWS SAM.
    Code: github.com/mav...
    Launch Blog post : aws.amazon.com...
    Documentation of Lambda functions with Typescript: docs.aws.amazo...
    Lambda function URL video: • 🆕 HTTPS endpoints for ...
    More on Lambda and Typescript: • Lambda + Typescript
    ⭐ SUBSCRIBE TO THIS CHANNEL: bit.ly/foobar-y...
    ⭐SHARE THIS VIDEO: • 🆕 Write your Lambda f...
    ☆☆ FOLLOW ME ONLINE ☆☆
    🐦 Twitter: / mavi888uy
    📺 AWS Spanish RUclips Channel: bit.ly/aws-esp-yt
    📷 Instagram: foobar_codes
    📚 All my Serverless Courses: marcia.dev/cou...
    ✍️ My blog - blog.marcia.dev
    ☆☆ ABOUT FOOBAR ☆☆
    In this channel, you can find mostly coding tutorials related to cloud and serverless.
    In addition, I like also talking about architecture, software design, motivation, and leadership.
    There is a new video every Tuesday, so stay tuned :)
    🎥 Recording equipment: blog.marcia.de...
    📚 My favorite books: blog.marcia.de...

Комментарии • 17

  • @TommyGuagnini
    @TommyGuagnini 10 месяцев назад +2

    Marcia gracias por tu video, gran material. Saludos!

  • @paulogodinho3275
    @paulogodinho3275 2 года назад +2

    Every guide I watch people get the hello world and trim it down, I wish there was a LEAN hello world without all the bloat.

  • @MrRalfiolaz
    @MrRalfiolaz 2 года назад +1

    Hola Marcia ... Me encanta como explicas las cosas y lo fácil que muestras como hacer fácil y simple!!

  • @raiK777
    @raiK777 10 месяцев назад

    Hey, I noticed the locket you're wearing in this video. It's stunning! Can you share where it's from or what it represents?

  • @AnkitTannaVlogs
    @AnkitTannaVlogs 8 месяцев назад +1

    can you debug this code? VSCode and AWS SAM are not having a great combination...

  • @VincentJenks
    @VincentJenks Год назад +1

    I love your videos! Would you mind doing one where you debug a TS Lambda locally with SAM? Specifically, if you're using a frontend like React, and you need to run it locally, and it uses API Gateway and Lambda - a pretty basic app and a very common scenario, I'm sure. However, I'm finding this very hard to configure and get working, after many hours. There also is not a lot of useful, working examples out there. None, actually.

  • @lowzyyy
    @lowzyyy 4 месяца назад

    Can someoneo explain in simple terms why do we need this sam thing? What is the difference between this approach and approach where i just transpile ts into js with tsc command and deploy whole dist folder?

  • @user-gb6nd8sh2d
    @user-gb6nd8sh2d 2 года назад +1

    thanks for that!

  • @andresm9051
    @andresm9051 Год назад

    Why I can not compile the function as docker image and upload it erm aws? it only work with nodejs and zip package alone not for typescrypt?

  • @darkmift
    @darkmift 10 месяцев назад

    You did not show the deploy process and key issues like the entry point file

  • @joe0212
    @joe0212 Год назад

    Not sure why you left half way while deploying

  • @clagccs
    @clagccs Год назад

    hola Marcia, tengo un pequeño problema...mi lambda require poder utilizer un directorio que está dentro de mi proyecto (a nivel del package.json) pero parece que al construirse la lambda hace una especie de bundle y ya este directorio no es accessible, probe incluso imprimir en runtime los directorios y en efecto no aparece...sabes cómo puedo evitar esto? muchísimas gracias!...

  • @felipegene9194
    @felipegene9194 2 года назад +3

    Why did you stop using serverless framework ? It would be Nice to see the same approach on serverless framework as well...

  • @lordpablo1985
    @lordpablo1985 2 года назад +1

    Why aren't you using the modular v3 AWS JS SDK? aws-sdk is outdated.

  • @paulohenriquefernandesdear2265
    @paulohenriquefernandesdear2265 2 года назад

    hello marcia, i'm from brazil and i like very much your videos with typescript... so i'm thinking if you can make a video starting a lambda from zero using CDK or SAM but not using 'init' because he install many kind of stuff and is hard to understend yours functions. thanks.

  • @OscarD3v
    @OscarD3v 5 месяцев назад

    raise NpmExecutionError(message=err.decode("utf8").strip())
    aws_lambda_builders.workflows.nodejs_npm.npm.NpmExecutionError: NPM Failed: