-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
45 lines (38 loc) · 1.06 KB
/
main.tf
File metadata and controls
45 lines (38 loc) · 1.06 KB
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
37
38
39
40
41
42
43
44
45
provider "azurerm" {
version = "2.5.0"
features {}
}
terraform {
backend "azurerm" {
resource_group_name = "tr_rg_blobstore"
storage_account_name = "micmodeteraformtest"
container_name = "tfstate"
key = "terraform.tfstate"
}
}
variable "imagebuild" {
type = string
description = "Latest Image Build"
}
resource "azurerm_resource_group" "tf_test" {
name = "tfmainrg"
location = "North Europe"
}
resource "azurerm_container_group" "tfcg_test" {
name = "weatherapi"
location = azurerm_resource_group.tf_test.location
resource_group_name = azurerm_resource_group.tf_test.name
ip_address_type = "public"
dns_name_label = "binarythistlewa"
os_type = "Linux"
container {
name = "weatherapi"
image = "modzelm1/weatherapi:${var.imagebuild}"
cpu = "1"
memory = "1"
ports {
port = 80
protocol = "TCP"
}
}
}