This commit is contained in:
manojvazirani 2019-04-22 12:23:42 -04:00
Родитель 161794d7b6
Коммит 4419a94fac
2 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -20,8 +20,8 @@ Please click the [link](https://www.terraform.io/docs/providers/azurerm/r/app_se
## Usage
```
variable "resource_group_name" {
default = "cblt-svcplan-rg"
variable "name" {
default = "prod"
}
variable "location" {
@ -29,8 +29,9 @@ variable "location" {
}
resource "azurerm_resource_group" "svcplan" {
name = "${var.resource_group_name}"
name = "${var.resource_group_name == "" ? "${local.name}-cobalt-rg" : "${var.resource_group_name}"}"
location = "${var.resource_group_location}"
tags = "${merge(map("Name", "${local.name}"), var.resource_tags)}"
}
resource "azurerm_app_service_plan" "svcplan" {

Просмотреть файл

@ -19,7 +19,7 @@ variable "resource_tags" {
}
variable "svcplan_name" {
description = "(Required) The name of the servie plan to be created"
description = "(Optional) The name of the service plan to be created"
default = ""
}
variable "svcplan_tier" {