-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.tf
117 lines (93 loc) · 1.7 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# ---------------------------------------------
# Terraform configuration
# ---------------------------------------------
terraform {
required_version = ">=1.6"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}
# ---------------------------------------------
# Provider
# ---------------------------------------------
provider "aws" {
profile = "terraform"
region = "ap-northeast-1"
}
provider "aws" {
alias = "virginia"
profile = "terraform"
region = "us-east-1"
}
# ---------------------------------------------
# Variables
# ---------------------------------------------
variable "project" {
type = string
}
variable "environment" {
type = string
}
variable "vpc_address" {
type = string
}
variable "public_1a_address" {
type = string
}
variable "public_1c_address" {
type = string
}
variable "private_1a_address" {
type = string
}
variable "private_1c_address" {
type = string
}
variable "key_pair_path" {
type = string
}
variable "ec2_instance_type" {
type = string
}
variable "ami_name" {
type = string
}
variable "http_port" {
type = number
}
variable "https_port" {
type = number
}
variable "db_port" {
type = number
}
variable "app_port" {
type = number
}
variable "ssh_port" {
type = number
}
variable "domain" {
type = string
}
variable "db_engine" {
type = string
}
variable "db_version" {
type = string
}
variable "db_full_version" {
type = string
}
variable "db_username" {
type = string
}
variable "db_name" {
type = string
}
variable "db_instance_type" {
type = string
}