ops: initial terraform config

This commit is contained in:
Vyacheslav Matyukhin 2022-04-11 21:03:47 +03:00
parent 62e3a37c65
commit 5cf183ec6f
No known key found for this signature in database
GPG Key ID: 3D2A774C5489F96C
2 changed files with 35 additions and 0 deletions

2
tf/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/*.tfstate*
/.terraform*

33
tf/main.tf Normal file
View File

@ -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"
}
}