This article discusses the creation of Self-signed CA and TLS certificates using Terrform

How TLS Works?

TLS is an industry standward way to add encryption for data in transist.

Why Private TLS?

Terraform TLS Module

Terraform TLS module provides an easy way to create CA and corresponding service certificates.

Gist

Above example code creates the following:

Diagram

private-tls