-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
44 lines (38 loc) · 938 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
terraform {
cloud {
organization = "messeb"
workspaces {
name = "terraform-az-apim"
}
}
}
# Configure the Azure Provider
provider "azurerm" {
features {
# Deletes external resources if resource groups are deleted
resource_group {
prevent_deletion_if_contains_resources = true
}
}
}
module "apim" {
source = "github.com/messeb/terraform-az-apim.git"
resource_group_name = "az-api-management"
resources_base_name = "az-api-management"
location = "westeurope"
publisher_email = "[email protected]"
publisher_name = "messeb"
sku_name = "Consumption_0"
api_keys = [
{
name = "ApiKey01"
key = "f1a9b055-638a-4b4b-8b77-58ae5a602aab"
}
]
sub_domain_dns = {
resource_group_name = "messeb"
zone_name = "messeb.net"
root_domain = "messeb.net"
sub_domain_name = "az-api-management"
}
}