-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.tf
55 lines (45 loc) · 889 Bytes
/
data.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Debian 10 Buster
# Debian 10 Buster
data "aws_ami" "debian-10" {
most_recent = true
owners = ["136693071363"]
filter {
name = "name"
values = ["debian-10-amd64-*"]
}
filter {
name = "virtualization-type"
values = ["hvm"]
}
}
# Debian 11 Bullseye
data "aws_ami" "debian-11" {
most_recent = true
owners = ["136693071363"]
filter {
name = "name"
values = ["debian-11-amd64-*"]
}
filter {
name = "virtualization-type"
values = ["hvm"]
}
}
resource "aws_default_vpc" "default" {
tags = {
Name = "Default VPC"
}
}
data "aws_subnet_ids" "default" {
vpc_id = aws_default_vpc.default.id
}
data "aws_subnet" "default" {
id = element(tolist(data.aws_subnet_ids.default.ids), 0)
}
### Locals
locals {
terraform_version = var.terraform_version
tags = {
terraform_version = local.terraform_version
}
}