main.tf 554 B

1234567891011121314151617181920212223242526
  1. # This file is not currently (to avoid adding Terraform for now) in use but is kept for future reference.
  2. terraform {
  3. required_providers {
  4. postgresql = {
  5. source = "cyrilgdn/postgresql"
  6. version = "1.23.0"
  7. }
  8. }
  9. }
  10. provider "postgresql" {
  11. host = "localhost"
  12. port = 5432
  13. database = "postgres"
  14. username = "postgres"
  15. password = ""
  16. sslmode = "disable"
  17. connect_timeout = 15
  18. }
  19. resource "postgresql_database" "webui" {
  20. name = "webui"
  21. }
  22. # equal to
  23. # CREATE DATABASE webui;