TESTING YOUR INFRASTRUCTURE AS CODE WITH AWS CDK (Typescript + Jest)

preview_player
Показать описание
In this episode, we talk with Darko Mesaros about how to test your infrastructure as code using programming language techniques using AWS CDK.

★★ README / OPEN ME ★★

☆☆ ABOUT THIS VIDEO ☆☆
This is another episode on the series of interviews "This is not a podcast", where I interview experts about serverless and cloud topics.

We have been told many times that we need to make our infrastructure as code, but what that is mean? Can we run unit tests over it? If so how? In this video, we are going to see some strategies for testing the infrastructure using Jest and AWS CDK.

00:00 - Introduction
03:20 - Testing infrastructure
07:25 - CDK
12:31 - Ways to test your infrastructure
15:07 - Validation tests
19:00 - Snapshot test
28:40 - Fined grained assertions
41:30 - Integration tests with Lambda functions

🔍 You can find Darko with through these links:

🔗 mentioned in this video

#thisIsNotAPodcast #serverless #foobar

☆☆ FOLLOW ME ONLINE ☆☆

📷Instagram: foobar_codes

☆☆ MY FAVORITE BOOKS ☆☆

☆☆ 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:

Рекомендации по теме
Комментарии
Автор

Thank You Marcia for hosting me! It was, as always, a pleasure! 🥰

ruptwelve
Автор

For infrastructure I couldnt easily construct via terraform, I can see the point of CDK. I would use the tests not to verify the initial build, but to check from time to time for drift from the desired state.

What I would like to see is tests that prove I have setup (and changes maintain) connectivity between services correctly - can service A connect to service B with the current network and NACL setup etc.

And tests that various roles can correctly do, or are correctly denied, the auth to do various operations e.g yes I can SSH to a VM, but no I cannot restart the Apache instance.

CDK seems like the tool that can, or maybe one day will be able to, do these more integration/acceptance level tests on my stack.

Great content as alway

leriksenbendigo
Автор

HI can you help me with any vidoes of AWS CDK + Cloud foundation with typescript please.

muralisunnam
Автор

Awesome talk. I definitively need to test the CDK and give it a chance against Serverless Framework !

willysup
Автор

"Queue... Que? Kwehweh?"
That's exactly how my brain goes every time I try to type it too

morphman
Автор

Which testing tool can we use for cdk code written in python?

sumituvaach
Автор

Great stuff. There is a lack of god tutorials and blogs on this topic, so well done

davethorneycroft
Автор

Love it. Need to start to practising. Look very cool. Thanks Marcia and Darko

zainafzal
Автор

How does this all work for Amazon Connect infra using CDK?

bushansy