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
2 changes: 1 addition & 1 deletion 0_core-infrastructure/azure-bastion/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ resource "azurerm_virtual_network" "example" {
}

resource "azurerm_subnet" "example" {
name = "AzureBastionSubnet" # Required name for the Bastion subnet
name = "AzureBastionSubnet" # Required name for the Bastion subnet
resource_group_name = azurerm_resource_group.example.name
virtual_network_name = azurerm_virtual_network.example.name
address_prefixes = var.subnet_address_prefixes
Expand Down
8 changes: 4 additions & 4 deletions 0_core-infrastructure/azure-bastion/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ terraform {
# Specify the required provider and its version
required_providers {
azurerm = {
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
}
}
}

provider "azurerm" {
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Add your subscription ID here
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Add your subscription ID here
}
16 changes: 8 additions & 8 deletions 0_core-infrastructure/azure-bastion/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
# This file provides default values for the variables defined in variables.tf.
# These values can be overridden by specifying different values during Terraform execution.

resource_group_name = "my-resource-group"
location = "East US"
vnet_name = "my-vnet"
vnet_address_space = ["10.0.0.0/16"]
subnet_name = "my-subnet"
resource_group_name = "my-resource-group"
location = "East US"
vnet_name = "my-vnet"
vnet_address_space = ["10.0.0.0/16"]
subnet_name = "my-subnet"
subnet_address_prefixes = ["10.0.1.0/24"]
public_ip_name = "my-public-ip"
bastion_name = "my-bastion"
subscription_id = "your-subscription-id"
public_ip_name = "my-public-ip"
bastion_name = "my-bastion"
subscription_id = "your-subscription-id"
tags = {
env = "dev"
}
8 changes: 4 additions & 4 deletions 0_core-infrastructure/network-security-group/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ terraform {
# Specify the required provider and its version
required_providers {
azurerm = {
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
}
}
}

provider "azurerm" {
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Add your subscription ID here
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Add your subscription ID here
}
8 changes: 4 additions & 4 deletions 0_core-infrastructure/public-ip/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ terraform {
# Specify the required provider and its version
required_providers {
azurerm = {
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
}
}
}

provider "azurerm" {
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Add your subscription ID here
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Add your subscription ID here
}
8 changes: 4 additions & 4 deletions 0_core-infrastructure/resource-group/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ terraform {
# Specify the required provider and its version
required_providers {
azurerm = {
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
}
}
}

provider "azurerm" {
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Add your subscription ID here
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Add your subscription ID here
}
8 changes: 4 additions & 4 deletions 0_core-infrastructure/subnet/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ terraform {
# Specify the required provider and its version
required_providers {
azurerm = {
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
}
}
}

provider "azurerm" {
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Add your subscription ID here
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Add your subscription ID here
}
12 changes: 6 additions & 6 deletions 0_core-infrastructure/subnet/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# This file provides default values for the variables defined in variables.tf.
# It allows you to customize the configuration without modifying the variables file.

resource_group_name = "example-resource-group"
vnet_name = "example-vnet"
subnet_name = "example-subnet"
location = "East US"
address_space = ["10.0.0.0/16"]
resource_group_name = "example-resource-group"
vnet_name = "example-vnet"
subnet_name = "example-subnet"
location = "East US"
address_space = ["10.0.0.0/16"]
subnet_address_prefixes = ["10.0.1.0/24"]
subscription_id = "your-subscription-id-here"
subscription_id = "your-subscription-id-here"
tags = {
"project" = "example-project"
"owner" = "team-name"
Expand Down
8 changes: 4 additions & 4 deletions 0_core-infrastructure/virtual-network/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ terraform {
# Specify the required provider and its version
required_providers {
azurerm = {
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
}
}
}

provider "azurerm" {
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Add your subscription ID here
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Add your subscription ID here
}
8 changes: 4 additions & 4 deletions 10_migration-backup/backup/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ terraform {
# Specify the required provider and its version
required_providers {
azurerm = {
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
}
}
}

provider "azurerm" {
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Use the subscription ID variable
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Use the subscription ID variable
}
4 changes: 2 additions & 2 deletions 10_migration-backup/backup/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ resource_group_name = "RG-backupvault-test"
location = "eastus"

# Backup Vault
backup_vault_name = "my-backup-vault"
redundancy = "LocallyRedundant"
backup_vault_name = "my-backup-vault"
redundancy = "LocallyRedundant"
tags = {
Environment = "Backup"
Owner = "IT"
Expand Down
8 changes: 4 additions & 4 deletions 10_migration-backup/site-recovery/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ terraform {
# Specify the required provider and its version
required_providers {
azurerm = {
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
}
}
}

provider "azurerm" {
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Use the subscription ID variable
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Use the subscription ID variable
}
4 changes: 2 additions & 2 deletions 10_migration-backup/site-recovery/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ resource_group_name = "RG-siterecorvery-test"
location = "eastus"

# Recovery Services Vault Configuration
vault_name = "my-siterecovery-vault"
sku = "Standard"
vault_name = "my-siterecovery-vault"
sku = "Standard"
tags = {
Environment = "SiteRecovery"
Owner = "IT"
Expand Down
8 changes: 4 additions & 4 deletions 1_storage-databases/blob-storage/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ terraform {
# Specify the required provider and its version
required_providers {
azurerm = {
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
}
}
}

provider "azurerm" {
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Use the subscription ID variable
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Use the subscription ID variable
}
8 changes: 4 additions & 4 deletions 1_storage-databases/cosmos-db/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ terraform {
# Specify the required provider and its version
required_providers {
azurerm = {
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
}
}
}

provider "azurerm" {
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Use the subscription ID variable
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Use the subscription ID variable
}
8 changes: 4 additions & 4 deletions 1_storage-databases/cosmos-db/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# This file provides default values for the variables defined in variables.tf.
# These values can be overridden by specifying different values during Terraform execution.

resource_group_name = "my-resource-group"
location = "East US 2"
cosmosdb_account_name = "mycosmosdbaccount"
subscription_id = "your-subscription-id"
resource_group_name = "my-resource-group"
location = "East US 2"
cosmosdb_account_name = "mycosmosdbaccount"
subscription_id = "your-subscription-id"
tags = {
env = "dev"
}
4 changes: 2 additions & 2 deletions 1_storage-databases/data-lake-storage/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ resource "azurerm_storage_account" "example" {
}

resource "azurerm_storage_data_lake_gen2_filesystem" "example" {
name = var.filesystem_name
storage_account_id = azurerm_storage_account.example.id
name = var.filesystem_name
storage_account_id = azurerm_storage_account.example.id

# Ensure the Data Lake Gen2 File System depends on the Storage Account
depends_on = [
Expand Down
8 changes: 4 additions & 4 deletions 1_storage-databases/data-lake-storage/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ terraform {
# Specify the required provider and its version
required_providers {
azurerm = {
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
}
}
}

provider "azurerm" {
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Use the subscription ID variable
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Use the subscription ID variable
}
10 changes: 5 additions & 5 deletions 1_storage-databases/data-lake-storage/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# This file provides default values for the variables defined in variables.tf.
# These values can be overridden by specifying different values during Terraform execution.

resource_group_name = "my-resource-group"
location = "East US"
storage_account_name = "mystorageaccount"
filesystem_name = "myfilesystem"
subscription_id = "your-subscription-id"
resource_group_name = "my-resource-group"
location = "East US"
storage_account_name = "mystorageaccount"
filesystem_name = "myfilesystem"
subscription_id = "your-subscription-id"
tags = {
env = "dev"
}
8 changes: 4 additions & 4 deletions 1_storage-databases/file-storage/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ terraform {
# Specify the required provider and its version
required_providers {
azurerm = {
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
}
}
}

provider "azurerm" {
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Use the subscription ID variable
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Use the subscription ID variable
}
20 changes: 10 additions & 10 deletions 1_storage-databases/mongo-atlas/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
azure_subscription_id = "your-subscription-id"
resource_group_name = "your-resource-group"
vnet_name = "your-vnet-name"
azure_vnet_cidr_block = "10.3.0.0/16"
atlas_cidr_block = "192.168.4.0/24" # Ensure this CIDR block does not overlap with the Azure virtual network CIDR block
location = "your-location" # e.g "East US 2"
mongodbatlas_org_id = "your-org-id"
azure_directory_id = "your-directory-id"
mongodbatlas_public_key = "your-public-key"
mongodbatlas_private_key = "your-private-key"
azure_subscription_id = "your-subscription-id"
resource_group_name = "your-resource-group"
vnet_name = "your-vnet-name"
azure_vnet_cidr_block = "10.3.0.0/16"
atlas_cidr_block = "192.168.4.0/24" # Ensure this CIDR block does not overlap with the Azure virtual network CIDR block
location = "your-location" # e.g "East US 2"
mongodbatlas_org_id = "your-org-id"
azure_directory_id = "your-directory-id"
mongodbatlas_public_key = "your-public-key"
mongodbatlas_private_key = "your-private-key"
8 changes: 4 additions & 4 deletions 1_storage-databases/mysql-flexible-server/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ terraform {
# Specify the required provider and its version
required_providers {
azurerm = {
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
source = "hashicorp/azurerm" # Source of the AzureRM provider
version = "~> 4.16.0" # Version of the AzureRM provider
}
time = {
source = "hashicorp/time"
Expand All @@ -19,6 +19,6 @@ terraform {
}

provider "azurerm" {
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Use the subscription ID variable
features {} # Enable all features for the AzureRM provider
subscription_id = var.subscription_id # Use the subscription ID variable
}
Loading