diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..d47a299 --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +export TF_VAR_credentials="/path/to/credentials.json" +export TF_VAR_project_id="your-gcp-project-id" \ No newline at end of file diff --git a/.gitignore b/.gitignore index 33bde51..cc6e82a 100644 --- a/.gitignore +++ b/.gitignore @@ -178,8 +178,8 @@ crash.log crash.*.log # Exclude all .tfvars files, which are likely to contain sensitive data, such as -# password, private keys, and other secrets. These should not be part of version -# control as they are data points which are potentially sensitive and subject +# password, private keys, and other secrets. These should not be part of version +# control as they are data points which are potentially sensitive and subject # to change depending on the environment. *.tfvars *.tfvars.json @@ -200,3 +200,5 @@ override.tf.json # Ignore CLI configuration files .terraformrc terraform.rc + +dbt-service-account.json \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4c8256b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM prefecthq/prefect:2-python3.10 + +COPY . /opt/prefect/prefect-cloud-run-poc + +RUN pip install -r /opt/prefect/prefect-cloud-run-poc/flows/brazilian_reits/requirements.txt + +CMD ["python3", "/opt/prefect/prefect-cloud-run-poc/flows/brazilian_reits/brazilian_reits.py"] diff --git a/terraform/main.tf b/terraform/main.tf index 3cfca50..a0df92d 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -9,7 +9,7 @@ terraform { provider "google" { credentials = file(var.credentials) - project = var.project + project = var.project_id region = "us-central1" } diff --git a/terraform/variables.tf b/terraform/variables.tf index 70de282..2f44c58 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -1,11 +1,9 @@ variable "credentials" { description = "My credentials" - default = "/Users/apple/Documents/data-engineering-course/week_1_basics_n_setup/terraform/keys/my-creds.json" } -variable "project" { - description = "Project" - default = "arthur-data-engineering-course" +variable "project_id" { + description = "GCP Project" } variable "location" {