Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Managing PostgreSQL with Terraform

mongrelion
November 25, 2022

Managing PostgreSQL with Terraform

Automation is key to success if you are planning for scalability, traceability and reproduceability.
In this talk we are going to have a look into how to manage databases, roles and grants in PostgreSQL with Terraform.
Prior knowledge of Terraform is not required.

mongrelion

November 25, 2022
Tweet

More Decks by mongrelion

Other Decks in Programming

Transcript

  1. Cloud Native Specialist @ CoreX Social Media: - mastodon: @[email protected]

    - Twitter: @mongrelion - LinkedIn: https://www.linkedin.com/in/mongrelion/ - [email protected]
  2. Foundation - Servers - Public IPs - Load Balancers -

    Firewalls - API Gateways - DNS zones + records - Service Principals / Non-personal Accounts - Mail campaigns - PagerDuty users, groups, alert rules, etc - A big et cétera
  3. server-a firewall load balancer server-b dc-sft-a Input: - load balancer

    LAN IP - Inboud rules - Outboud rules Output: - LAN IP
  4. Considerations - Security (traceability, blast radius limitation) - Reusability/DRY -

    Principle of least privilege is widely adopted in the industry - Initial work is “more” than just hacking into the server
  5. Q&A