This project uses Terraform to manage the deployment of the Plank App to Netlify. The configuration handles automatic deployments, environment variables, and build settings.
- Install Terraform (version 1.0 or later)
- Create a Netlify account and obtain a personal access token
- Have your Supabase project URL and anonymous key ready
-
Copy the example variables file:
cp terraform.tfvars.example terraform.tfvars
-
Edit
terraform.tfvars
with your values:netlify_token
: Your Netlify personal access tokengithub_repo_path
: Your GitHub repository path (e.g., "username/plank-app")supabase_url
: Your Supabase project URLsupabase_anon_key
: Your Supabase anonymous key
-
Initialize Terraform:
terraform init
-
Review the deployment plan:
terraform plan
-
Apply the configuration:
terraform apply
After successful deployment, Terraform will output:
site_url
: The URL of your deployed sitesite_id
: The Netlify site IDdeploy_url
: The URL for the latest deployment
To update the site configuration or redeploy:
- Make your changes to the Terraform files or application code
- Run
terraform apply
to apply the changes - Commit and push your code - Netlify will automatically deploy updates