-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdata.tf
More file actions
43 lines (36 loc) · 717 Bytes
/
Copy pathdata.tf
File metadata and controls
43 lines (36 loc) · 717 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
40
41
42
43
data "aws_subnet" "this" {
id = var.subnet_id
}
data "aws_ami" "this" {
most_recent = true
filter {
name = "name"
values = [var.ami.name]
}
filter {
name = "virtualization-type"
values = ["hvm"]
}
}
data "aws_iam_policy_document" "policy_document" {
statement {
actions = ["sts:AssumeRole"]
effect = "Allow"
principals {
type = "Service"
identifiers = ["ec2.amazonaws.com"]
}
}
}
data "aws_iam_policy_document" "attach_ebs_volume_policy" {
version = "2012-10-17"
statement {
actions = [
"ec2:AttachVolume",
"ec2:DescribeVolumes",
"ec2:DescribeInstances"
]
effect = "Allow"
resources = ["*"]
}
}