2023-06-23 15:20:40 +02:00
|
|
|
terraform {
|
|
|
|
required_providers {
|
|
|
|
airflow = {
|
|
|
|
source = "DrFaust92/airflow"
|
|
|
|
version = ">= 0.12.5"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
provider "airflow" {
|
|
|
|
base_endpoint = "http://airflow-webserver:8080"
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "airflow_connection" "pg_connection" {
|
|
|
|
connection_id = "pg_db"
|
|
|
|
conn_type = "postgres"
|
2023-06-23 16:23:21 +02:00
|
|
|
host = var.pg_host
|
|
|
|
port = var.pg_port
|
2023-06-23 15:20:40 +02:00
|
|
|
schema = var.pg_db
|
|
|
|
login = var.pg_username
|
|
|
|
password = var.pg_password
|
|
|
|
}
|