mirror of
https://github.com/devitq/yandexcloud-k3s.git
synced 2026-09-20 22:50:34 +00:00
24 lines
587 B
Terraform
24 lines
587 B
Terraform
resource "yandex_api_gateway" "frontend" {
|
|
name = "frontend"
|
|
description = "API Gateway for frontend"
|
|
execution_timeout = "300"
|
|
|
|
connectivity {
|
|
network_id = yandex_vpc_network.default.id
|
|
}
|
|
|
|
custom_domains {
|
|
fqdn = local.final_frontend_domain
|
|
certificate_id = yandex_cm_certificate.default.id
|
|
}
|
|
|
|
log_options {
|
|
log_group_id = yandex_logging_group.api_gateway.id
|
|
min_level = "INFO"
|
|
}
|
|
|
|
spec = templatefile("${path.module}/configs/api_gateway/spec.yaml", {
|
|
bucket_name = yandex_storage_bucket.frontend.bucket
|
|
})
|
|
}
|