Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing the dos endings #44

Merged
merged 1 commit into from
Nov 14, 2023
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SNAPSHOT_IDS,REGION,ACTION
snap-003ca55db483999b2,ap-south-1,DEL
snap-006cd21bf396006db,ap-south-1,DEL
snap-00d8a4aed19d3eb64,us-east-1,DEL
SNAPSHOT_IDS,REGION,ACTION
snap-003ca55db483999b2,ap-south-1,DEL
snap-006cd21bf396006db,ap-south-1,DEL
snap-00d8a4aed19d3eb64,us-east-1,DEL
6 changes: 3 additions & 3 deletions scripts/unused_vol_and_orphan_snap_report/unused_vol.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VOLUME_ID,STATUS,REGION,ACTION,DESC
vol-09ca939fc08f7cedc,available,ap-south-1,DEL,volume is not attached to an instance
vol-0c5208ad4ed07f24a,available,us-east-1,DEL,volume is not attached to an instance
VOLUME_ID,STATUS,REGION,ACTION,DESC
vol-09ca939fc08f7cedc,available,ap-south-1,DEL,volume is not attached to an instance
vol-0c5208ad4ed07f24a,available,us-east-1,DEL,volume is not attached to an instance
72 changes: 36 additions & 36 deletions terraform/azure/examples/main.tf
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
module "network" {
source = "../modules/vnet"
vnet_name = "myvnet"
address_space = ["10.0.0.0/16"]
location = "eastus"
resource_group_name = "testrg"
subnet_names = ["aks_subnet", "appgw_subnet"]
subnet_address_prefixes = ["10.0.1.0/24", "10.0.2.0/24"]
nsg_name = "testnsg"
inbound_rules = {
rule1 = {
name = "inbound_rule1"
priority = 100
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_range = "80"
source_address_prefix = "1.2.3.4"
destination_address_prefix = "10.0.1.0/24"
}
}
outbound_rules = {
rule1 = {
name = "outbound_rule1"
priority = 100
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_range = "443"
source_address_prefix = "10.0.1.0/24"
destination_address_prefix = "5.6.7.8"
}
}
}
module "network" {
source = "../modules/vnet"
vnet_name = "myvnet"
address_space = ["10.0.0.0/16"]
location = "eastus"
resource_group_name = "testrg"
subnet_names = ["aks_subnet", "appgw_subnet"]
subnet_address_prefixes = ["10.0.1.0/24", "10.0.2.0/24"]
nsg_name = "testnsg"

inbound_rules = {
rule1 = {
name = "inbound_rule1"
priority = 100
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_range = "80"
source_address_prefix = "1.2.3.4"
destination_address_prefix = "10.0.1.0/24"
}
}

outbound_rules = {
rule1 = {
name = "outbound_rule1"
priority = 100
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_range = "443"
source_address_prefix = "10.0.1.0/24"
destination_address_prefix = "5.6.7.8"
}
}
}
4 changes: 2 additions & 2 deletions terraform/azure/modules/vnet/locals.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
locals {
environment = "Development"
locals {
environment = "Development"
}
20 changes: 10 additions & 10 deletions terraform/azure/modules/vnet/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
output "vnet_id" {
description = "ID of the created Azure Virtual Network"
value = azurerm_virtual_network.Vnet.id
}
output "subnet_ids" {
description = "IDs of the created subnets"
value = azurerm_subnet.subnets.*.id
}
output "vnet_id" {
description = "ID of the created Azure Virtual Network"
value = azurerm_virtual_network.Vnet.id
}

output "subnet_ids" {
description = "IDs of the created subnets"
value = azurerm_subnet.subnets.*.id
}

186 changes: 93 additions & 93 deletions terraform/azure/modules/vnet/variables.tf
Original file line number Diff line number Diff line change
@@ -1,93 +1,93 @@
variable "vnet_name" {
description = "Name of the Azure Virtual Network"
default = "testvnet"
type = string
}
variable "address_space" {
description = "Address space for the Azure Virtual Network"
default = ["10.0.0.0/16"]
type = list(string)
}
variable "location" {
description = "Azure region where the resources will be created"
default = "us-east-1"
type = string
}
variable "resource_group_name" {
description = "Name of the Azure Resource Group"
default = "testrg"
type = string
}
variable "subnet_names" {
description = "Names of the subnets"
default = ["testsubnet"]
type = list(string)
}
variable "subnet_address_prefixes" {
description = "Address prefixes for the subnets"
default = ["10.0.1.0/24"]
type = list(string)
}
variable "nsg_name" {
description = "Name of Security group"
default = "testnsg"
type = string
}
variable "inbound_rules" {
description = "A map of inbound security rules"
default = {
rule1 = {
name = "inbound_rule1"
priority = 100
access = "Allow"
protocol = "TCP"
source_port_range = "*"
destination_port_range = "80"
source_address_prefix = "1.2.3.4"
destination_address_prefix = "10.0.1.0/24"
}
}
type = map(object({
name = string
priority = number
access = string
protocol = string
source_port_range = string
destination_port_range = string
source_address_prefix = string
destination_address_prefix = string
}))
}
variable "outbound_rules" {
description = "A map of outbound security rules"
default = {
rule1 = {
name = "outbound_rule1"
priority = 100
access = "Allow"
protocol = "TCP"
source_port_range = "*"
destination_port_range = "443"
source_address_prefix = "10.0.1.0/24"
destination_address_prefix = "5.6.7.8"
}
}
type = map(object({
name = string
priority = number
access = string
protocol = string
source_port_range = string
destination_port_range = string
source_address_prefix = string
destination_address_prefix = string
}))
}
variable "vnet_name" {
description = "Name of the Azure Virtual Network"
default = "testvnet"
type = string
}

variable "address_space" {
description = "Address space for the Azure Virtual Network"
default = ["10.0.0.0/16"]
type = list(string)
}

variable "location" {
description = "Azure region where the resources will be created"
default = "us-east-1"
type = string
}

variable "resource_group_name" {
description = "Name of the Azure Resource Group"
default = "testrg"
type = string
}

variable "subnet_names" {
description = "Names of the subnets"
default = ["testsubnet"]
type = list(string)
}

variable "subnet_address_prefixes" {
description = "Address prefixes for the subnets"
default = ["10.0.1.0/24"]
type = list(string)
}

variable "nsg_name" {
description = "Name of Security group"
default = "testnsg"
type = string
}

variable "inbound_rules" {
description = "A map of inbound security rules"
default = {
rule1 = {
name = "inbound_rule1"
priority = 100
access = "Allow"
protocol = "TCP"
source_port_range = "*"
destination_port_range = "80"
source_address_prefix = "1.2.3.4"
destination_address_prefix = "10.0.1.0/24"
}
}
type = map(object({
name = string
priority = number
access = string
protocol = string
source_port_range = string
destination_port_range = string
source_address_prefix = string
destination_address_prefix = string
}))
}

variable "outbound_rules" {
description = "A map of outbound security rules"
default = {
rule1 = {
name = "outbound_rule1"
priority = 100
access = "Allow"
protocol = "TCP"
source_port_range = "*"
destination_port_range = "443"
source_address_prefix = "10.0.1.0/24"
destination_address_prefix = "5.6.7.8"
}
}
type = map(object({
name = string
priority = number
access = string
protocol = string
source_port_range = string
destination_port_range = string
source_address_prefix = string
destination_address_prefix = string
}))
}
Loading