Repository navigation
Expand file tree
/
Copy pathvariables.tf
More file actions
88 lines (74 loc) · 2.14 KB
/
Copy pathvariables.tf
File metadata and controls
88 lines (74 loc) · 2.14 KB
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
variable "vpc_cidr" {
description = "VPCのCIDRブロック"
type = string
default = "10.0.0.0/16"
}
variable "subnet_cidr" {
description = "サブネットのCIDRブロック"
type = string
default = "10.0.1.0/24"
}
variable "region" {
description = "VPCのリージョン"
type = string
default = "ap-northeast-1"
}
variable "resource_name" {
description = "各種リソースに付ける共通の名前"
type = string
}
variable "instance_type" {
description = "踏み台サーバーで使うインスタンスタイプ"
type = string
default = "t2.medium"
}
variable "start_time" {
description = "踏み台サーバーを起動する時間"
type = string
default = "cron(55 8 ? * MON-FRI *)"
}
variable "stop_time" {
description = "踏み台サーバーを停止する時間"
type = string
default = "cron(0 19 ? * MON-FRI *)"
}
variable "vpc_id" {
description = "踏み台サーバーを配置するVPCのID(未指定の場合は自動生成)"
type = string
default = ""
}
variable "subnet_id" {
description = "踏み台サーバーを配置するサブネットのID(未指定の場合は自動生成)"
type = string
default = ""
}
variable "availability_zone" {
description = "サブネットのアベイラビリティゾーン"
type = string
default = "ap-northeast-1a"
}
variable "generation" {
description = "バックアップの世代数"
type = number
default = 10
}
variable "assign_eip" {
description = "EC2にEIPを割り当てるかどうか"
type = bool
default = false
}
variable "disable_api_termination" {
description = "終了保護を有効にするかどうか"
type = bool
default = true
}
variable "enable_backup" {
description = "バックアップ設定を有効にするかどうか"
type = bool
default = true
}
variable "tfstate_bucket_name" {
description = "Terraform StateファイルをS3に保存するためのS3バケット名"
type = string
default = "terraform-aws-bastion-tfstate"
}