aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.terraform/terraform-aws-vpc/variables.tf
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2022-03-24 10:48:15 +0100
committerPeter Mikus <pmikus@cisco.com>2022-03-24 10:05:05 +0000
commitc5181ae1627fed20b79a829bf2330f3ee9d8a0f6 (patch)
tree606c7a53441e65f40cc16631b0495eb6c7129efa /fdio.infra.terraform/terraform-aws-vpc/variables.tf
parentdc28d6ba2adc598699a71fc5757f08325840d358 (diff)
feat(terraform): AWS VPC
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: I3acd41dc07c15eac0e87a4aedd75d53b30666cf8
Diffstat (limited to 'fdio.infra.terraform/terraform-aws-vpc/variables.tf')
-rw-r--r--fdio.infra.terraform/terraform-aws-vpc/variables.tf107
1 files changed, 107 insertions, 0 deletions
diff --git a/fdio.infra.terraform/terraform-aws-vpc/variables.tf b/fdio.infra.terraform/terraform-aws-vpc/variables.tf
new file mode 100644
index 0000000000..1e883eda78
--- /dev/null
+++ b/fdio.infra.terraform/terraform-aws-vpc/variables.tf
@@ -0,0 +1,107 @@
+variable "tags_name" {
+ description = "Name used for tag."
+ type = string
+ default = ""
+}
+
+variable "tags_environment" {
+ description = "Environment used for tag."
+ type = string
+ default = ""
+}
+
+# Variables for elastic beanstalk VPC
+variable "vpc_assign_generated_ipv6_cidr_block" {
+ description = "Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC."
+ type = bool
+ default = true
+}
+
+variable "vpc_cidr_block" {
+ description = "The CIDR block for the association."
+ type = string
+ default = "192.168.0.0/24"
+}
+
+variable "vpc_enable_dns_hostnames" {
+ description = "Whether or not the VPC has DNS hostname support."
+ type = bool
+ default = true
+}
+
+variable "vpc_enable_dns_support" {
+ description = "Whether or not the VPC has DNS support."
+ type = bool
+ default = true
+}
+
+variable "vpc_instance_tenancy" {
+ description = "The allowed tenancy of instances launched into the selected VPC."
+ type = string
+ default = "default"
+}
+
+# Variables for Security Group
+variable "security_group_description" {
+ description = "Security group description."
+ type = string
+ default = "Allow inbound/outbound traffic"
+}
+
+variable "security_group_name" {
+ description = "Name of the security group."
+ type = string
+}
+
+variable "security_group_revoke_rules_on_delete" {
+ description = "Instruct Terraform to revoke all of the Security Groups attached ingress and egress rules before deleting the rule itself."
+ type = bool
+ default = false
+}
+
+variable "security_group_ingress" {
+ description = "Ingress security group map."
+ type = list(any)
+ default = [
+ {
+ from_port = 22
+ to_port = 22
+ protocol = "tcp"
+ cidr_blocks = ["0.0.0.0/0"]
+ ipv6_cidr_blocks = ["::/0"]
+ },
+ ]
+}
+
+variable "security_group_egress" {
+ description = "Egress security group map."
+ type = list(any)
+ default = [
+ {
+ from_port = 0
+ to_port = 0
+ protocol = "-1"
+ cidr_blocks = ["0.0.0.0/0"]
+ ipv6_cidr_blocks = ["::/0"]
+ },
+ ]
+}
+
+# Variables for elastic beanstalk Subnet
+variable "subnet_assign_ipv6_address_on_creation" {
+ description = "Specify true to indicate that network interfaces created in the specified subnet should be assigned an IPv6 address."
+ type = bool
+ default = false
+}
+
+variable "subnet_availability_zone" {
+ description = "AWS availability zone"
+ type = string
+ default = "us-east-1a"
+}
+
+variable "subnet_map_public_ip_on_launch" {
+ description = "Specify true to indicate that instances launched into the subnet should be assigned a public IP address."
+ type = bool
+ default = false
+}