Tag: Terraform
Rotate Service Account Key using Terraform and Secret Manager
In this quick demo, we will create a service account and key file and store the key into secret manager and rotate the key. We are going to use Terraform code to do all these tasks. What is Service Account? GCP IAM offers two types of accounts for authentication and authorization, they are user accounts,…
GCP BigQuery Dynamic Data Masking
GCP BigQuery offers dynamic data masking at column level. By using data masking we obscure columns that holds sensitive data for users, groups and service accounts, while still allowing access to data in those columns. What is Data Masking? Data masking is a method of modifying sensitive data while presenting it to an end user…
Terratest: Writing Automated Tests for Terraform Code
Why Terraform Code Testing is important? We prefer to modularise Terraform code to avoid repetition and to combine multiple resources that are used together. These modules then get consumed in other terraform configuration blocks. Testing Terraform code is very important especially when we have Terraform modules, that are being used in many places to deploy…
Deploy GCP Resources with CDK for Terraform(CDKTF)
What is Cloud Development Kit for Terraform (CDKTF)? CDKTF allows users to produce Terraform configuration using programming languages such as C#, Python, TypeScript, Java, or Go. Users can use all Terraform providers and modules with CDKTF. CDKTF uses the Cloud Development Kit from AWS, which provides a set of language-native frameworks for defining infrastructure, and…
How to Deploy a VPC on GCP with Terraform
GCP Virtual Private Cloud(VPC) network overview and deployment using Terraform. Creating primary and secondary subnets for Kubernetes clusters deployments and basic firewall rules.
Terraform: for_each and count meta-arguments
Terraform count and for_each meta-arguments to create several similar resources. if condition usage with for_each and count meta-arguments.