-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathexample.tf
54 lines (40 loc) · 980 Bytes
/
example.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
terraform {
required_version = ">= 0.12.0"
}
variable "region" {
default = "eu-central-1"
}
provider "aws" {
region = var.region
}
module "vpc-utm" {
source = "terraform-aws-modules/vpc/aws"
version = "2.7.0"
enable_dns_hostnames = true
enable_dns_support = true
name = "utm-vpc"
cidr = "10.0.0.0/16"
azs = ["${var.region}a", "${var.region}b", "${var.region}c"]
public_subnets = ["10.0.0.0/24", "10.0.1.0/24", "10.0.2.0/24"]
tags = {
Terraform = "true"
App = "UTM"
}
}
module "utm" {
source = "git@github.com:cloudreach/squid-utm.git//terraform?ref=v1.1"
vpc_id = module.vpc-utm.vpc_id
aws_region = var.region
environment = "dev"
lb_subnets = module.vpc-utm.public_subnets
fargate_subnets = module.vpc-utm.public_subnets
desired_count = 2
url_block_all = false
extra_tags = {
Terraform = "true"
App = "UTM"
}
}
output "test_curl" {
value = module.utm.test_curl
}