Skip to main content

Command Palette

Search for a command to run...

Database As Code

Updated
โ€ข1 min readโ€ขView as Markdown
Database As Code

This post introduces the concept about how one can manage PostgreSQL database as a Code using Terraform and GitOps Approach on any Environment/Infra:

๐Ÿค”๐‚๐จ๐ฆ๐ฉ๐จ๐ง๐ž๐ง๐ญ๐ฌ ๐ฎ๐ฌ๐ž๐:

  1. Terraform PostgreSQL Provider : Allows you to manage various aspects like below:

    • User and Role Management.

    • Database Creation.

    • Granting Permissions to Users and Roles.

    • Extension Management on PostgreSQL.

    • Replication Management for HA and DR

  1. GitHub ๐€๐œ๐ญ๐ข๐จ๐ง๐ฌ ๐ฎ๐ฌ๐ข๐ง๐  ๐’๐ž๐ฅ๐Ÿ ๐‡๐จ๐ฌ๐ญ๐ž๐ ๐จ๐ซ ๐†๐ข๐ญ๐ก๐ฎ๐› ๐‡๐จ๐ฌ๐ญ๐ž๐ ๐‘๐ฎ๐ง๐ง๐ž๐ซ๐ฌ: To bootstrap Terraform PostgreSQL provider for Deployment using Actions Workflow on any environment/infra.

GitHub Repo Reference: Database As Code

More from this blog

DevSecOps for Infrastructure as Code

This post provides information about building a DevSecOps pipeline for your Infra as Code setup. ๐Ÿ“๐‚๐จ๐ฆ๐ฉ๐จ๐ง๐ž๐ง๐ญ๐ฌ ๐”๐ฌ๐ž๐: GitHub Actions: As CI/CD platform. HashiCorp Terraform: Tool for Infra as Code. ๐’๐ญ๐š๐ญ๐ข๐œ ๐‚๐จ๐๐ž ๐€๐ง๐š๐ฅ๐ฒ๐ฌ๐ข๏ฟฝ...

Aug 25, 20251 min read
DevSecOps for Infrastructure as Code

Local LLM's on WSL2

Below example demonstrates running locally Ollama and ๐Ž๐ฉ๐ž๐ง-๐–๐ž๐›๐”๐ˆ ๐จ๐ง ๐š ๐–๐’๐‹2 containerized environment. - The model Ollama is running in this example: ๐๐ฐ๐ž๐ง2.5-๐‚๐จ๐๐ž๐ซ:0.5๐› - Presently it is on CPU as i have ๐ˆ๐ง๐ญ๐ž๐ฅ ๐ˆ๐ซ๐ข๏ฟฝ...

Jun 7, 20251 min read
Local LLM's on WSL2

lostinopensrc Blogs!

25 posts