Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
158 changes: 0 additions & 158 deletions environments/test/vpc/main.tf

This file was deleted.

33 changes: 0 additions & 33 deletions environments/test/vpc/variables.tf

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
145 changes: 145 additions & 0 deletions infra/sg/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
variable "region" {
type = string
description = "Region of the security group."
}

variable "sg_name" {
type = string
description = "Name of the security group for the instance."
}

variable "vpc_id" {
type = string
description = "ID of the VPC associated with the security group."
}

variable "tags" {
default = {}
type = map(string)
description = "Extra tags to attach to the EC2 security group resources."
}

variable "name" {
type = string
description = "The name of the resources."
}

variable "environment" {
type = string
description = "The environment name for the resources."
}

variable "owner" {
type = string
description = "Owner's name for the resource."
}

variable "cost_center" {
type = string
description = "Cost center identifier for the resource."
}

variable "application" {
type = string
description = "Name of the application related to the resource."
}

variable "ingress_cidr_from_port" {
type = list(number)
description = "List of starting ports for cidr ingress rules of the EC2 security group."
}

variable "ingress_cidr_to_port" {
type = list(number)
description = "List of ending ports for cidr ingress rules of the EC2 security group."
}

variable "ingress_cidr_protocol" {
type = list(string)
description = "List of protocols for cidr ingress rules of the EC2 security group."
}

variable "ingress_cidr_block" {
type = list(string)
description = "List of CIDR blocks for cidr ingress rules of the EC2 security group."
}

variable "ingress_sg_from_port" {
type = list(number)
description = "List of starting ports for sg ingress rules of the EC2 security group."
}

variable "ingress_sg_to_port" {
type = list(number)
description = "List of ending ports for sg ingress rules of the EC2 security group."
}

variable "ingress_sg_protocol" {
type = list(string)
description = "List of protocols for sg ingress rules of the EC2 security group."
}

variable "ingress_security_group_ids" {
type = list(string)
description = "List of Security Group ids for sg ingress rules of the EC2 security group."
}

variable "egress_cidr_from_port" {
type = list(number)
description = "List of starting ports for cidr egress rules of the EC2 security group."
}

variable "egress_cidr_to_port" {
type = list(number)
description = "List of ending ports for cidr egress rules of the EC2 security group."
}

variable "egress_cidr_protocol" {
type = list(any)
description = "List of protocols for cidr egress rules of the EC2 security group."
}

variable "egress_cidr_block" {
type = list(string)
description = "List of CIDR blocks for cidr egress rules of the EC2 security group."
}

variable "egress_sg_from_port" {
type = list(number)
description = "List of starting ports for sg egress rules of the EC2 security group."
}

variable "egress_sg_to_port" {
type = list(number)
description = "List of ending ports for sg egress rules of the EC2 security group."
}

variable "egress_sg_protocol" {
type = list(any)
description = "List of protocols for sg egress rules of the EC2 security group."
}

variable "egress_security_group_ids" {
type = list(string)
description = "List of Security Group ids for sg egress rules of the EC2 security group."
}

variable "create_ingress_cidr" {
type = bool
description = "Enable or disable CIDR block ingress rules."
}

variable "create_ingress_sg" {
type = bool
description = "Enable or disable Security Groups ingress rules."
}

variable "create_egress_cidr" {
type = bool
description = "Enable or disable CIDR block egress rules."
}

variable "create_egress_sg" {
type = bool
description = "Enable or disable Security Groups egress rules."
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions environments/dev/vpc/main.tf → infra/vpc/main.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
terraform {
backend "s3" {}
}
# terraform {
# backend "s3" {}
# }
provider "aws" {
region = var.region
}

module "vpc" {
source = "../../../modules/vpc"
source = "../../modules/vpc"
region = var.region
vpc_cidr_block = var.vpc_cidr_block
instance_tenancy = var.instance_tenancy
Expand Down
File renamed without changes.
Loading