terraform-provider-postgresql | Terraform PostgreSQL provider | Infrastructure Automation library
kandi X-RAY | terraform-provider-postgresql Summary
kandi X-RAY | terraform-provider-postgresql Summary
This provider allows to manage with Terraform [Postgresql] objects like databases, extensions, roles, etc.. It’s published on the [Terraform registry] It replaces since Hashicorp stopped hosting community providers in favor of the Terraform registry.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- resourcePostgreSQLRoleCreate is used to create a role
- Provider returns a schema . Provider .
- resourcePostgreSQLRole returns schema for PostgreSQL Role .
- createDatabase creates a database
- readRolePrivileges retrieves privileges from a database .
- resourcePostgreSQLRoleReadImpl is used to perform a postgres role read .
- withRolesGranted calls fn with the given roles granted to the user .
- resourcePostgreSQLSchema returns the schema .
- resourcePostgreSQLRoleUpdate postgres role update
- resourcePostgreSQLDatabaseReadImpl deserializes a PostgreSQL database .
terraform-provider-postgresql Key Features
terraform-provider-postgresql Examples and Code Snippets
Community Discussions
Trending Discussions on terraform-provider-postgresql
QUESTION
I have a terraform configuration that looks like this:
- With provider
aws
, create an RDS database - With provider
https://github.com/cyrilgdn/terraform-provider-postgresql
, create Postgresql databases etc.
The latter is done via separate custom module.
Now, when calling terraform destroy
I ended up in state where cluster is removed but databases are not deleted, and TF complains with error
Error: error detecting capabilities: error PostgreSQL version: dial tcp: lookup [host].eu-west-1.rds.amazonaws.com on [IP]:53: no such host
which clearly suggests database entities were not removed prior to removing the cluster.
I would like to identify to Terraform that database entities must be removed before cluster itself. How could I do that?
...ANSWER
Answered 2021-Feb-17 at 09:10Try depends_on meta-argument so postgreSQL
module depends on RDS
module.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install terraform-provider-postgresql
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page