forked from Azure-Samples/terraform-github-actions
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.tf
28 lines (25 loc) · 729 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">= 3.7.0"
}
}
# Update this block with the location of your terraform state file
backend "azurerm" {
resource_group_name = "rg-terraform-github-actions-state"
storage_account_name = "terraformgithubactions"
container_name = "tfstate"
key = "terraform.tfstate"
use_oidc = true
}
}
provider "azurerm" {
features {}
use_oidc = true
}
# Define any Azure resources to be created here. A simple resource group is shown here as a minimal example.
resource "azurerm_resource_group" "rg-aks" {
name = var.resource_group_name
location = var.location
}