-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvercel-terraform.tf
More file actions
127 lines (113 loc) · 2.86 KB
/
Copy pathvercel-terraform.tf
File metadata and controls
127 lines (113 loc) · 2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
variable "REACT_APP_SENTRY_DSN" {
type = string
description = "Sentry Integration Client Key"
}
variable "REACT_APP_API_KEY" {
type = string
description = "Firebase API Key"
}
variable "REACT_APP_AUTH_DOMAIN" {
type = string
description = "Firebase Authentication Domain"
}
variable "REACT_APP_DATABASE_URL" {
type = string
description = "Firebase Database URL"
}
variable "REACT_APP_PROJECT_ID" {
type = string
description = "Google Project ID"
}
variable "REACT_APP_STORAGE_BUCKET" {
type = string
description = "Firebase Storage Bucket"
}
variable "REACT_APP_MESSAGING_SENDER_ID" {
type = string
description = "Firebase Messaging Sender ID"
}
variable "REACT_APP_APP_ID" {
type = string
description = "Firebase APP ID"
}
variable "REACT_APP_MEASUREMENT_ID" {
type = string
description = "Firebase Google Analytics Measurement ID"
}
variable "VERCEL_API_TOKEN" {
type = string
description = "Full Access Vercel Token"
}
terraform {
cloud {
organization = "mdirshaddev"
workspaces {
name = "sharemem"
}
}
required_providers {
vercel = {
source = "vercel/vercel"
version = "~> 0.4"
}
}
}
provider "vercel" {
api_token = var.VERCEL_API_TOKEN
}
resource "vercel_project" "sharemem" {
name = "sharemem"
framework = "create-react-app"
serverless_function_region = "bom1"
environment = [
{
key = "REACT_APP_SENTRY_DSN"
value = var.REACT_APP_SENTRY_DSN
target = ["production", "preview", "development"]
},
{
key = "REACT_APP_API_KEY"
value = var.REACT_APP_API_KEY
target = ["production", "preview", "development"]
},
{
key = "REACT_APP_AUTH_DOMAIN"
value = var.REACT_APP_AUTH_DOMAIN
target = ["production", "preview", "development"]
},
{
key = "REACT_APP_DATABASE_URL"
value = var.REACT_APP_DATABASE_URL
target = ["production", "preview", "development"]
},
{
key = "REACT_APP_PROJECT_ID"
value = var.REACT_APP_PROJECT_ID
target = ["production", "preview", "development"]
},
{
key = "REACT_APP_STORAGE_BUCKET"
value = var.REACT_APP_STORAGE_BUCKET
target = ["production", "preview", "development"]
},
{
key = "REACT_APP_MESSAGING_SENDER_ID"
value = var.REACT_APP_MESSAGING_SENDER_ID
target = ["production", "preview", "development"]
},
{
key : "REACT_APP_APP_ID",
value : var.REACT_APP_APP_ID
target = ["production", "preview", "development"]
},
{
key = "REACT_APP_MEASUREMENT_ID",
value : var.REACT_APP_MEASUREMENT_ID
target = ["production", "preview", "development"]
}
]
git_repository = {
type = "github"
repo = "mdirshaddev/sharemem"
}
}