Bring Infrastructure as Code best practices to your data workflows with Kestra and Terraform
https://github.com/anna-geller/kestra-terraform-examples.git
There are two important paradigms that significantly shaped the Data Infrastructure landscape:
curl -o docker-compose.yml https://raw.githubusercontent.com/kestra-io/kestra/develop/docker-compose.yml
docker-compose up
Before starting Kestra, make sure to create the .env file as shown in the .envexample file. Add any secrets there as environment variables so that you can use them in your workflows in a secure way.
You can install Terraform on your local machine using Homebrew (for detailed instructions of your OS, check the Terraform CLI install guide Terraform):
brew tap hashicorp/tap
brew install hashicorp/tap/terraform
Navigate to the relevant project e.g. awss3tf and initialize the relevant Terraform providers:
cd aws_s3/
terraform init
Then, deploy the workflow and the underlying infrastructure using the command:
terraform apply -auto-approve