diff --git a/tf/.gitignore b/tf/.gitignore new file mode 100644 index 0000000..3fd4f08 --- /dev/null +++ b/tf/.gitignore @@ -0,0 +1,2 @@ +/*.tfstate* +/.terraform* diff --git a/tf/main.tf b/tf/main.tf new file mode 100644 index 0000000..17f4a71 --- /dev/null +++ b/tf/main.tf @@ -0,0 +1,33 @@ +terraform { + required_providers { + vercel = { + source = "vercel/vercel" + version = "~> 0.1" + } + } +} + +provider "vercel" { + # Or omit this for the api_token to be read + # from the VERCEL_API_TOKEN environment variable + # api_token = var.vercel_api_token +} + +resource "vercel_project" "with_git" { + name = "metaforecast-test" + team_id = "quantified-uncertainty" + framework = "nextjs" + + environment = [ + { + key = "NEXT_PUBLIC_ALGOLIA_APP_ID" + value = "96UD3NTQ7L" + target = ["production"] + } + ] + + git_repository = { + type = "github" + repo = "berekuk/metaforecast" + } +}