In this article we’ll use terraform to launch a VPC with a public and a private subnet, a RDS instance in the private subnet and one EC2 instance in both public and private subnet.
Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently. Configuration files describe to terraform the components needed to run a single application or your entire datacenter. Terraform generates an execution plan describing what it will do to reach the desired state, and then executes it to build the described infrastructure. …
An article to connect Google cloud function and GCE
We will be triggering a python script hosted in a google compute engine from the google cloud function through a serverless VPC access connector. First, let’s go through what these services are:
Google Cloud function:
Google Cloud Function is a serverless execution environment for building and connecting cloud services in a fully managed environment without provisioning or managing any servers. With Cloud Functions you write simple, single-purpose functions that are attached to events from your cloud infrastructure and services.
Google Compute Engine (GCE):
Google Compute Engine is a virtual machine (VM) hosted…