Ran 'terraform fmt' against code being modified in this PR'
This commit is contained in:
parent
32a23622d0
commit
4a706b9f6d
@ -1,16 +1,16 @@
|
|||||||
resource "random_pet" "rg_name" {
|
resource "random_pet" "rg_name" {
|
||||||
prefix = var.resource_group_name_prefix
|
prefix = var.resource_group_name_prefix
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "azurerm_resource_group" "rg" {
|
resource "azurerm_resource_group" "rg" {
|
||||||
name = random_pet.rg_name.id
|
name = random_pet.rg_name.id
|
||||||
location = var.resource_group_location
|
location = var.resource_group_location
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "azurerm_attestation_provider" "corpAttestation" {
|
resource "azurerm_attestation_provider" "corpAttestation" {
|
||||||
name = var.attestation_provider_name
|
name = var.attestation_provider_name
|
||||||
resource_group_name = azurerm_resource_group.rg.name
|
resource_group_name = azurerm_resource_group.rg.name
|
||||||
location = azurerm_resource_group.rg.location
|
location = azurerm_resource_group.rg.location
|
||||||
|
|
||||||
policy_signing_certificate_data = file(var.policy_file)
|
policy_signing_certificate_data = file(var.policy_file)
|
||||||
}
|
}
|
@ -1,3 +1,3 @@
|
|||||||
output "resource_group_name" {
|
output "resource_group_name" {
|
||||||
value = azurerm_resource_group.rg.name
|
value = azurerm_resource_group.rg.name
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
terraform {
|
terraform {
|
||||||
|
|
||||||
required_version = ">=0.12"
|
required_version = ">=0.12"
|
||||||
|
|
||||||
required_providers {
|
required_providers {
|
||||||
azurerm = {
|
azurerm = {
|
||||||
source = "hashicorp/azurerm"
|
source = "hashicorp/azurerm"
|
||||||
version = "~>2.0"
|
version = "~>2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
variable "resource_group_name_prefix" {
|
variable "resource_group_name_prefix" {
|
||||||
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."
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "resource_group_location" {
|
variable "resource_group_location" {
|
||||||
default = "eastus"
|
default = "eastus"
|
||||||
description = "Location of the resource group."
|
description = "Location of the resource group."
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "policy_file" {
|
variable "policy_file" {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
resource "random_pet" "rg_name" {
|
resource "random_pet" "rg_name" {
|
||||||
prefix = var.resource_group_name_prefix
|
prefix = var.resource_group_name_prefix
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "azurerm_resource_group" "rg" {
|
resource "azurerm_resource_group" "rg" {
|
||||||
name = random_pet.rg_name.id
|
name = random_pet.rg_name.id
|
||||||
location = var.resource_group_location
|
location = var.resource_group_location
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
output "resource_group_name" {
|
output "resource_group_name" {
|
||||||
value = azurerm_resource_group.rg.name
|
value = azurerm_resource_group.rg.name
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
terraform {
|
terraform {
|
||||||
|
|
||||||
required_version = ">=0.12"
|
required_version = ">=0.12"
|
||||||
|
|
||||||
required_providers {
|
required_providers {
|
||||||
azurerm = {
|
azurerm = {
|
||||||
source = "hashicorp/azurerm"
|
source = "hashicorp/azurerm"
|
||||||
version = "~>2.0"
|
version = "~>2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
variable "resource_group_name_prefix" {
|
variable "resource_group_name_prefix" {
|
||||||
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."
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "resource_group_location" {
|
variable "resource_group_location" {
|
||||||
default = "eastus"
|
default = "eastus"
|
||||||
description = "Location of the resource group."
|
description = "Location of the resource group."
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
output "resource_group_name" {
|
output "resource_group_name" {
|
||||||
value = azurerm_resource_group.default.name
|
value = azurerm_resource_group.default.name
|
||||||
}
|
}
|
||||||
|
|
||||||
output "azurerm_mysql_flexible_server" {
|
output "azurerm_mysql_flexible_server" {
|
||||||
value = azurerm_mysql_flexible_server.default.name
|
value = azurerm_mysql_flexible_server.default.name
|
||||||
}
|
}
|
||||||
|
|
||||||
output "mysql_flexible_server_database_name" {
|
output "mysql_flexible_server_database_name" {
|
||||||
value = azurerm_mysql_flexible_database.default.name
|
value = azurerm_mysql_flexible_database.default.name
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@ terraform {
|
|||||||
|
|
||||||
required_providers {
|
required_providers {
|
||||||
azurerm = {
|
azurerm = {
|
||||||
source = "hashicorp/azurerm"
|
source = "hashicorp/azurerm"
|
||||||
version = "~>3.0"
|
version = "~>3.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user