-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresources.tf
More file actions
36 lines (35 loc) · 984 Bytes
/
resources.tf
File metadata and controls
36 lines (35 loc) · 984 Bytes
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
resource "yandex_serverless_container" "api" {
name = "api"
memory = 128
execution_timeout = "5s"
cores = 1
core_fraction = 100
service_account_id = var.service_account_id
secrets {
id = var.lockbox_secret_id
version_id = var.lockbox_secret_version
key = "github_oauth_client_id"
environment_variable = "OAUTH_CLIENT_ID"
}
secrets {
id = var.lockbox_secret_id
version_id = var.lockbox_secret_version
key = "github_oauth_client_secret"
environment_variable = "OAUTH_CLIENT_SECRET"
}
image {
url = var.image
environment = {
HOST = "0.0.0.0"
LOG_LEVEL = "DEBUG"
LOG_FORMAT = "json"
SESSION_STORE_TYPE = "memory"
}
}
provision_policy {
min_instances = 1
}
}
output "url" {
value = yandex_serverless_container.api.url
}