-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.tf
70 lines (58 loc) · 1.15 KB
/
main.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
provider "aws" {
version = "~> 2.20.0"
region = "us-east-1"
}
provider "consul" {
alias = "test"
}
terraform {
required_providers {
consul = ">= 2.4.0"
}
}
data "aws_acm_certificate" "test-cert" {
domain = "test.example.com"
statuses = ["ISSUED"]
}
data "consul_key" "test" {
key {
name = "test"
path = "examples/test.json"
default = "{}"
}
}
variable "vpc_id" {
description = "The id of the vpc"
type = string
}
variable "subnet_ids" {
description = "A list of subnet ids to use"
type = list(string)
}
variable "instance_name" {
description = "Instance name prefix"
type = string
default = "test-"
}
variable "instance_count" {
description = "Number of instances to create"
type = number
default = 1
}
variable "extra_tags" {
description = "Additional tags"
type = map(string)
default = {}
}
variable "extra_environment" {
description = "List of additional environment variables"
type = list(object({
name = string
value = string
}))
default = []
}
output "vpc_id" {
description = "The Id of the VPC"
value = var.vpc_id
}