Ran 'terraform fmt' against code being modified in this PR'

This commit is contained in:
Tom Archer 2022-08-24 06:50:04 -07:00
parent 32a23622d0
commit 4a706b9f6d
10 changed files with 28 additions and 28 deletions

View File

@ -1,16 +1,16 @@
resource "random_pet" "rg_name" {
prefix = var.resource_group_name_prefix
prefix = var.resource_group_name_prefix
}
resource "azurerm_resource_group" "rg" {
name = random_pet.rg_name.id
location = var.resource_group_location
name = random_pet.rg_name.id
location = var.resource_group_location
}
resource "azurerm_attestation_provider" "corpAttestation" {
name = var.attestation_provider_name
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
name = var.attestation_provider_name
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
policy_signing_certificate_data = file(var.policy_file)
policy_signing_certificate_data = file(var.policy_file)
}

View File

@ -1,3 +1,3 @@
output "resource_group_name" {
value = azurerm_resource_group.rg.name
value = azurerm_resource_group.rg.name
}

View File

@ -1,10 +1,10 @@
terraform {
required_version = ">=0.12"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
source = "hashicorp/azurerm"
version = "~>2.0"
}
}

View File

@ -1,11 +1,11 @@
variable "resource_group_name_prefix" {
default = "rg"
description = "Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription."
default = "rg"
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" {
default = "eastus"
description = "Location of the resource group."
default = "eastus"
description = "Location of the resource group."
}
variable "policy_file" {

View File

@ -1,8 +1,8 @@
resource "random_pet" "rg_name" {
prefix = var.resource_group_name_prefix
prefix = var.resource_group_name_prefix
}
resource "azurerm_resource_group" "rg" {
name = random_pet.rg_name.id
location = var.resource_group_location
name = random_pet.rg_name.id
location = var.resource_group_location
}

View File

@ -1,3 +1,3 @@
output "resource_group_name" {
value = azurerm_resource_group.rg.name
value = azurerm_resource_group.rg.name
}

View File

@ -1,10 +1,10 @@
terraform {
required_version = ">=0.12"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
source = "hashicorp/azurerm"
version = "~>2.0"
}
}

View File

@ -1,9 +1,9 @@
variable "resource_group_name_prefix" {
default = "rg"
description = "Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription."
default = "rg"
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" {
default = "eastus"
description = "Location of the resource group."
default = "eastus"
description = "Location of the resource group."
}

View File

@ -1,11 +1,11 @@
output "resource_group_name" {
value = azurerm_resource_group.default.name
value = azurerm_resource_group.default.name
}
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" {
value = azurerm_mysql_flexible_database.default.name
value = azurerm_mysql_flexible_database.default.name
}

View File

@ -3,7 +3,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
source = "hashicorp/azurerm"
version = "~>3.0"
}
}