Edits per Code Review
This commit is contained in:
parent
def91ae46b
commit
562d51ac13
@ -7,7 +7,7 @@ resource "azurerm_resource_group" "rg" {
|
|||||||
location = var.resource_group_location
|
location = var.resource_group_location
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "random_string" "name" {
|
resource "random_string" "azurerm_api_management_name" {
|
||||||
length = 13
|
length = 13
|
||||||
lower = true
|
lower = true
|
||||||
numeric = false
|
numeric = false
|
||||||
@ -16,7 +16,7 @@ resource "random_string" "name" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "azurerm_api_management" "api" {
|
resource "azurerm_api_management" "api" {
|
||||||
name = "apiservice${random_string.name.result}"
|
name = "apiservice${random_string.azurerm_api_management_name.result}"
|
||||||
location = azurerm_resource_group.rg.location
|
location = azurerm_resource_group.rg.location
|
||||||
resource_group_name = azurerm_resource_group.rg.name
|
resource_group_name = azurerm_resource_group.rg.name
|
||||||
publisher_email = var.publisher_email
|
publisher_email = var.publisher_email
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
terraform {
|
terraform {
|
||||||
required_version = ">=0.12"
|
required_version = ">=1.00"
|
||||||
required_providers {
|
required_providers {
|
||||||
azurerm = {
|
azurerm = {
|
||||||
source = "hashicorp/azurerm"
|
source = "hashicorp/azurerm"
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
variable "resource_group_location" {
|
variable "resource_group_location" {
|
||||||
|
type = string
|
||||||
default = "eastus"
|
default = "eastus"
|
||||||
description = "Location for all resources."
|
description = "Location for all resources."
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "resource_group_name_prefix" {
|
variable "resource_group_name_prefix" {
|
||||||
|
type = string
|
||||||
default = "rg"
|
default = "rg"
|
||||||
description = "Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription."
|
description = "Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription."
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user