-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
38 lines (33 loc) · 745 Bytes
/
Copy pathmain.tf
File metadata and controls
38 lines (33 loc) · 745 Bytes
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
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "3.13.0"
}
}
}
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "tf_test" {
name = "tfrg"
location = "east us"
}
resource "azurerm_container_group" "tfci_test" {
name = "container-group"
location = azurerm_resource_group.tf_test.location
resource_group_name = azurerm_resource_group.tf_test.name
ip_address_type = "Public"
dns_name_label = "weatherapi"
os_type = "Linux"
container {
name = "weatherapi"
image = "balop3e/waetherapi"
cpu = "1"
memory = "1.5"
ports {
port = 80
protocol = "TCP"
}
}
}