And if your answer will be yes, everything will be copied over to the S3 bucket and will be removed from your local machine. Cool, now let's cover why we use TypeScript. Why do you use TypeScript for infrastructure as code? I think, yeah, it's pretty cool that there is no new language to learn, even though that I mentioned previously, hash core plan configuration languages is not that bad, but most of us know TypeScript and why we need to bring anything else. And moreover, TypeScript is for sure way more powerful than hash core configuration language. We have auto-complete, we have typings, we have all mature language advantages. You can think about methods you have for, map, reduce, whatever, and cycles, structuring with different models. You can't really achieve it with hash core configuration language. You need to store everything in one folder and there is no clear connection what is referenced to what, and in my opinion, it's a complete mess. But now we have more options for code structuring and new ways of sharing and here I'm talking about previously we were able to create Terraform modules or plugins separately, but there should be complete things and they are kind of detached from the frontend completely. Now we can use NPM and share our code with NPM, and we can even implement a test for our infrastructure too. Plus, I just want to highlight, because it's really important, I mean, I tried to make this talk focus on the frontend devs because I see that many backend devs knows about the concept of infrastructure as code when it's not exactly so when we're talking about the frontend world. But I think it's pretty relevant for both worlds, not only to create the infrastructure for your application itself, but also infrastructure for your monitoring. For example, you have New Relic and you want to specify some alerting there or create dashboards, or let's say you have Sentry for this purpose. Again, everything can be managed and in my opinion should be managed with infrastructure as code providers, in this case, let it be Terraform. So you can handle incident management with pager duty and again create the infrastructure for this with Terraform. Just a side note, it's still like a CDK, Terraform itself is quite mature already used in production around the world, but CDK, not yet. It's in a beta stage at the moment so you may expect some changes in the CDK itself, so please be careful about that, and yeah, it's not gonna be fair not to mention this.
And now, as I promised, everything, all code samples are available in this repo you can see now on the slide. I tried to follow during Comet history in the same way as I presented, so you will be able to follow up this talk. And thank you so much, that's it, and there is one more repo, Terraform TypeScript Frontend Infrastructure, which has slightly more advanced structuring and a bit more samples, so if you're interested you can check it out too.
And now I think we have Q&A session if there's still time, yeah? You're welcome. Thank you. Yes. Well, take a seat, we can chill now. Would you like something to drink? Oh, no, I'm good. I will clap for the remote audience, they are probably clapping at home, and... yelling at their screen sounds a bit negative, but in a positive way. So, I want to jump into the questions, and as a reminder, you can still ask questions if you're here, I'm also using Slido, and at the end Denise will select the best question, and we will give a React Advanced T-shirt to the winner. So, the first question is from Bruno Palino, static site infrastructure is awesome, but how about when you need actual servers and application deployments with databases, can you handle all this with Terraform? Yes, absolutely, I mean, this is what Terraform stands for, like everything is handled with this including databases, including various infrastructure you can just imagine for your microservices or monolith applications or whatever, so I think it's quite popular among all DevOps and backend engineers and we use it quite extensively. Awesome, okay, the next question is from Anonymous, so Anonymous will not be getting a T-shirt, we can, oh, this is incorrect, this should not be here, I'm reading the questions out loud that should not be questions.
Comments