Code changes to multiple projects
This commit is contained in:
parent
d18741890d
commit
e120e52351
25
quickstart/101-attestation-provider/main.tf
Normal file
25
quickstart/101-attestation-provider/main.tf
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
terraform {
|
||||||
|
required_providers {
|
||||||
|
azurerm = {
|
||||||
|
source = "hashicorp/azurerm"
|
||||||
|
version = "~>2.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
provider "azurerm" {
|
||||||
|
features {}
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "azurerm_resource_group" "rg" {
|
||||||
|
name = var.resource_group_name
|
||||||
|
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
|
||||||
|
|
||||||
|
policy_signing_certificate_data = file(var.policy_file)
|
||||||
|
}
|
15
quickstart/101-attestation-provider/variables.tf
Normal file
15
quickstart/101-attestation-provider/variables.tf
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
variable "resource_group_name" {
|
||||||
|
default = "myResourceGroup"
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "resource_group_location" {
|
||||||
|
default = "eastus"
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "policy_file" {
|
||||||
|
default = "./certs/cert.pem"
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "attestation_provider_name" {
|
||||||
|
default = "attestationprovider007"
|
||||||
|
}
|
@ -12,6 +12,6 @@ provider "azurerm" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "azurerm_resource_group" "rg" {
|
resource "azurerm_resource_group" "rg" {
|
||||||
name = "${var.name}-${var.environment}-rg"
|
name = var.resource_group_name
|
||||||
location = "${var.location}"
|
location = var.resource_group_location
|
||||||
}
|
}
|
@ -1,11 +1,7 @@
|
|||||||
variable "environment" {
|
variable "resource_group_name" {
|
||||||
default = "dev"
|
default = "myResourceGroup"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "name" {
|
variable "resource_group_location" {
|
||||||
default = "sample"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "location" {
|
|
||||||
default = "eastus"
|
default = "eastus"
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user