-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdata.tf
43 lines (35 loc) · 921 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
data "aws_ami" "ubuntu" {
most_recent = true
filter {
name = "name"
values = ["ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-*"]
}
filter {
name = "virtualization-type"
values = ["hvm"]
}
owners = ["099720109477"] # Canonical
}
data "aws_ami" "amaz2" {
most_recent = true
filter {
name = "name"
values = ["amzn2-ami-hvm*"]
}
owners = ["amazon"]
}
data "template_file" "cowrie_cfg" {
template = file("${path.module}/cowrie_modifications/cowrie.cfg.tpl")
vars = {
hostname = "alpha-build-03"
}
}
data "template_file" "iam_instance_profile" {
template = file("${path.module}/policy/ssm_instance_profile.json.tpl")
vars = {
ssm_cowrie_cfg = aws_ssm_parameter.cowrie_cfg.arn
}
}
data "template_file" "cowrie_install_script" {
template = file("${path.module}/install_scripts/cowrie_install.tpl")
}