Using extensions in Terraform

1,170 views
Skip to first unread message

Andrew Langhorn

unread,
Jun 20, 2016, 10:58:53 AM6/20/16
to terrafo...@googlegroups.com
Hi all,

I'm running PostgreSQL in RDS, and want to enable the PostGIS extension. I'd like to bake this enabling of PostGIS (and the related transfer of objects to specific roles) in to Terraform, but neither the RDS nor the PostgreSQL resource allow me to do this (which is fair enough, it seems).

Does anyone else do this through Terraform?

Andrew

Andrew Langhorn

unread,
Oct 24, 2016, 8:44:33 AM10/24/16
to Andrew Langhorn, terrafo...@googlegroups.com, Michael Kay
Hello,

I'm going to bump this up; if you have opinions on how to do this (or whether indeed Terraform should do this), then I'm all ears.

Cheers

Andrew
--

Andrew Langhorn
Senior Site Reliability Engineer
Emailandrew....@thoughtworks.com
Telephone+44 7733 339809
ThoughtWorks

Mat Schaffer

unread,
Oct 24, 2016, 8:57:24 PM10/24/16
to terrafo...@googlegroups.com, Andrew Langhorn, Michael Kay
Personally, I use a schema management tool for enabling postgis. e.g., https://github.com/Safecast/safecastapi/blob/master/db/structure.sql#L41

I usually to keep "app" level concerns outside of terraform and have terraform just handle the infra provisioning.



--

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/CAEpa1DJPu_BYY6%2BFn-S9rXKv07H_T-dq1go8bFmsaUEov4s-pQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages