Solution Architecture: NextJS Application (3 frontend pods) authenticating through Cloud SQL using Workload Identity

Workload Identity GCP - Page 1.png

Prerequisites:

Ok, we will be building a solution using the below concepts:

STOP THIS MADNES AND SHOW ME CODE

Pulumi

There are a couple of good tools that enable us to write code in a declarative way to handle Cloud Resources Provisioning. And for declarative way I mean,

<aside> 💡 We write the desired state for our infrastructure resources. Then a tool build using dark magic make our wishes come true.

</aside>

We could find Terraform by Hashicorp, Deployment Manager by Google, just to name a few. What makes Pulumi so special is that allows us to write code in a variety of languages suck Javascript, Go, etc. So get the joy of coding in our favorite sauce.

And what we are looking for is a predictable way to create and manage cloud resources. Abstracting away cloud specific-provider details and keep our focus on working with APIs.