-
Notifications
You must be signed in to change notification settings - Fork 1
/
data.tf
47 lines (40 loc) · 1.11 KB
/
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
terraform {
required_version = "~> 0.12.24" // Terraform frequently puts breaking changes into minor and patch version releases. _Always_ hard pin to the latest known and tested working version. Do not trust semantic versioning.
}
provider "aws" {
region = var.aws_region
profile = var.aws_profile
shared_credentials_file = var.aws_credentials_file
}
provider "aws" {
# us-east-1 instance
region = "us-east-1"
alias = "use1"
}
locals {
common_tags = {
X-Dept = "${var.tag_dept}"
X-Customer = "${var.tag_customer}"
X-Project = "${var.tag_project}"
X-Application = "${var.tag_application}"
X-Contact = "${var.tag_contact}"
X-TTL = "${var.tag_ttl}"
}
}
resource "random_id" "random" {
byte_length = 4
}
////////////////////////////////
// Instance Data
data "aws_ami" "splunk_ent" {
most_recent = true
owners = ["099720109477"] # Canonical
filter {
name = "name"
values = ["ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-*"]
}
filter {
name = "virtualization-type"
values = ["hvm"]
}
}