-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathacr.tf
36 lines (30 loc) · 826 Bytes
/
acr.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
29
30
31
32
33
34
35
36
resource "random_pet" "prefix" {
separator = ""
}
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "default" {
name = "${random_pet.prefix.id}-acr-rg"
location = "East US"
tags = {
environment = "Demo"
cluster = var.cluster
}
}
resource "azurerm_management_lock" "default" {
name = "resource-group-lock"
scope = azurerm_resource_group.default.id
lock_level = "CanNotDelete"
notes = "Locked to avoid accidential deletion"
}
resource "azurerm_container_registry" "default" {
name = "${random_pet.prefix.id}acr"
resource_group_name = azurerm_resource_group.default.name
location = azurerm_resource_group.default.location
sku = "Basic"
tags = {
environment = "Demo"
cluster = var.cluster
}
}