Files
yandexcloud-k3s/terraform/main/api_gateway.tf
T

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
})
}