refactor(terraform): 2n_aws_c5n
[csit.git] / fdio.infra.terraform / terraform-aws-vpc / variables.tf
1 variable "tags_name" {
2   description = "Name used for tag."
3   type        = string
4   default     = ""
5 }
6
7 variable "tags_environment" {
8   description = "Environment used for tag."
9   type        = string
10   default     = ""
11 }
12
13 # Variables for elastic beanstalk VPC
14 variable "vpc_assign_generated_ipv6_cidr_block" {
15   description = "Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC."
16   type        = bool
17   default     = true
18 }
19
20 variable "vpc_cidr_block" {
21   description = "The CIDR block for the association."
22   type        = string
23   default     = "192.168.0.0/24"
24 }
25
26 variable "vpc_enable_dns_hostnames" {
27   description = "Whether or not the VPC has DNS hostname support."
28   type        = bool
29   default     = true
30 }
31
32 variable "vpc_enable_dns_support" {
33   description = "Whether or not the VPC has DNS support."
34   type        = bool
35   default     = true
36 }
37
38 variable "vpc_instance_tenancy" {
39   description = "The allowed tenancy of instances launched into the selected VPC."
40   type        = string
41   default     = "default"
42 }
43
44 # Variables for Security Group
45 variable "security_group_description" {
46   description = "Security group description."
47   type        = string
48   default     = "Allow inbound/outbound traffic"
49 }
50
51 variable "security_group_name" {
52   description = "Name of the security group."
53   type        = string
54 }
55
56 variable "security_group_revoke_rules_on_delete" {
57   description = "Instruct Terraform to revoke all of the Security Groups attached ingress and egress rules before deleting the rule itself."
58   type        = bool
59   default     = false
60 }
61
62 variable "security_group_ingress" {
63   description = "Ingress security group map."
64   type        = list(any)
65   default = [
66     {
67       from_port        = 22
68       to_port          = 22
69       protocol         = "tcp"
70       self             = false
71       cidr_blocks      = ["0.0.0.0/0"]
72       ipv6_cidr_blocks = ["::/0"]
73     },
74     {
75       from_port        = 0
76       to_port          = 0
77       protocol         = -1
78       self             = true
79       cidr_blocks      = ["0.0.0.0/0"]
80       ipv6_cidr_blocks = ["::/0"]
81     },
82   ]
83 }
84
85 variable "security_group_egress" {
86   description = "Egress security group map."
87   type        = list(any)
88   default = [
89     {
90       from_port        = 0
91       to_port          = 0
92       protocol         = "-1"
93       cidr_blocks      = ["0.0.0.0/0"]
94       ipv6_cidr_blocks = ["::/0"]
95     },
96   ]
97 }
98
99 # Variables for elastic beanstalk Subnet
100 variable "subnet_assign_ipv6_address_on_creation" {
101   description = "Specify true to indicate that network interfaces created in the specified subnet should be assigned an IPv6 address."
102   type        = bool
103   default     = false
104 }
105
106 variable "subnet_availability_zone" {
107   description = "AWS availability zone"
108   type        = string
109   default     = "us-east-1a"
110 }
111
112 variable "subnet_map_public_ip_on_launch" {
113   description = "Specify true to indicate that instances launched into the subnet should be assigned a public IP address."
114   type        = bool
115   default     = false
116 }