forked from NHSDigital/personal-demographics-service-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
26 lines (22 loc) · 915 Bytes
/
main.tf
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
provider "apigee" {
org = var.apigee_organization
access_token = var.apigee_token
}
terraform {
backend "azurerm" {}
required_providers {
apigee = "~> 0.0"
archive = "~> 1.3"
}
}
module "personal-demographics-service" {
source = "github.com/NHSDigital/api-platform-service-module"
name = "personal-demographics"
path = "personal-demographics"
apigee_environment = var.apigee_environment
proxy_type = (var.force_sandbox || length(regexall("sandbox", var.apigee_environment)) > 0) ? "sandbox" : "live"
namespace = var.namespace
make_api_product = !(length(regexall("sandbox", var.apigee_environment)) > 0)
api_product_display_name = length(var.namespace) > 0 ? "personal-demographics${var.namespace}" : "Personal Demographics Service"
api_product_description = ""
}