Skip to content

Commit

Permalink
add rds postgis terraform reference
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Oct 19, 2024
1 parent 9f7f4b8 commit 513486d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions infrastructure/modules/rds/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@
## Cluster
########################

## To install PostGIS extension, a specific provider is needed, which needs to has access to the actual server.
## Can be achieved by ssh tunneling, check docs: https://registry.terraform.io/providers/cyrilgdn/postgresql/1.7.2/docs


# terraform {
# required_providers {
# postgresql = {
# source = "cyrilgdn/postgresql"
# version = "1.23.0"
# }
# }
# }
#
# # Installs postgres PostGIS extension
# resource "postgresql_extension" "postgis" {
# name = "postgis"
# }


resource "aws_db_instance" "postgresql" {
identifier = "db-${var.project}-${var.environment}"
engine = "postgres"
Expand Down

0 comments on commit 513486d

Please sign in to comment.