-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
39 lines (31 loc) · 736 Bytes
/
Copy pathmain.tf
File metadata and controls
39 lines (31 loc) · 736 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
39
# AWS Resources
resource "aws_vpc" "uu_vpc" {
cidr_block = var.vpc_range
tags = {
"Name" = "myvpcfromtf"
}
}
resource "aws_subnet" "uu-subnet" {
vpc_id = aws_vpc.my_vpc
cidr_block = var.address_space
depends_on = [
aws_vpc.my_vpc
]
}
# Azure Resources
resource "azurerm_resource_group" "uu-res-grp" {
name = var.az_resource_group_name
location = var.az_target_region
tags = {
"env" = "dev"
}
}
resource "azurerm_virtual_network" "uu_vnet" {
name = "az_subnet"
resource_group_name = azurerm_resource_group.uu-res-grp
location = var.az_target_region
address_space = var.address_space
depends_on = [
azurerm_resource_group.uu-res-grp
]
}