-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.tf
65 lines (55 loc) · 1.17 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
# #########################################
# Backend config
# #########################################
terraform {
required_version = ">= 0.12.28"
backend "s3" {}
}
# #########################################
# AWS provider
# #########################################
provider "aws" {
version = "2.68.0"
region = var.aws_region
profile = var.profile
}
provider "aws" {
version = "2.68.0"
alias = "us"
region = "us-east-1"
profile = var.profile
}
provider "aws" {
version = "2.68.0"
alias = "root"
region = var.aws_region
profile = var.root_profile
}
provider "aws" {
version = "2.68.0"
alias = "root-us"
region = "us-east-1"
profile = var.root_profile
}
# #########################################
# Other providers
# #########################################
provider "null" {
version = "~> 2.1"
}
provider "template" {
version = "~> 2.1"
}
provider "random" {
version = "~> 2.0"
}
provider "archive" {
version = "~> 1.3.0"
}
# #########################################
# Data
# #########################################
data "aws_caller_identity" "current" {}
data "aws_availability_zones" "available" {
state = "available"
}