Add postgresql provider
This commit is contained in:
		
							parent
							
								
									feab7c6ed8
								
							
						
					
					
						commit
						43baf205dc
					
				
					 12 changed files with 221 additions and 107 deletions
				
			
		
							
								
								
									
										14
									
								
								main.tf
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								main.tf
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -8,6 +8,10 @@ terraform {
 | 
			
		|||
      source = "ovh/ovh"
 | 
			
		||||
      version = "~> 0.48"
 | 
			
		||||
    }
 | 
			
		||||
    postgresql = {
 | 
			
		||||
      source = "cyrilgdn/postgresql"
 | 
			
		||||
      version = "~> 1.23"
 | 
			
		||||
    }
 | 
			
		||||
    scaleway = {
 | 
			
		||||
      source = "scaleway/scaleway"
 | 
			
		||||
      version = "~> 2.43"
 | 
			
		||||
| 
						 | 
				
			
			@ -48,6 +52,16 @@ provider "ovh" {
 | 
			
		|||
  consumer_key = "${var.ovh_consumer_key}"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
provider "postgresql" {
 | 
			
		||||
  host            = "${var.postgresql_host}"
 | 
			
		||||
  port            = "${var.postgresql_port}"
 | 
			
		||||
  database        = "postgres"
 | 
			
		||||
  username        = "${var.postgresql_username}"
 | 
			
		||||
  password        = "${var.postgresql_password}"
 | 
			
		||||
  sslmode         = "verify-full"
 | 
			
		||||
  connect_timeout = 15
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
provider "scaleway" {
 | 
			
		||||
  organization_id = "${var.scaleway_organization_id}"
 | 
			
		||||
  project_id = "${var.scaleway_project_id}"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue