ops: initial terraform config
This commit is contained in:
parent
62e3a37c65
commit
5cf183ec6f
2
tf/.gitignore
vendored
Normal file
2
tf/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
/*.tfstate*
|
||||
/.terraform*
|
33
tf/main.tf
Normal file
33
tf/main.tf
Normal 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"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user