diff --git a/.github/prompts/github-actions.prompt.md b/.github/prompts/github-actions.prompt.md index ba9e57f..269a6d7 100644 --- a/.github/prompts/github-actions.prompt.md +++ b/.github/prompts/github-actions.prompt.md @@ -1,5 +1,5 @@ --- -mode: 'ask' +mode: 'agent' description: 'Improve GitHub Actions by adding best practices and optimizations.' --- diff --git a/terraform/main.tf b/terraform/main.tf index 5c9a6f7..ee0cde6 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -57,3 +57,19 @@ module "aks" { depends_on = [module.network] } + +# Azure Storage Account +module "storage_account" { + source = "github.com/0GiS0/terraform-modules//modules/azure/storage-account" + providers = { + azurerm = azurerm.this + azurerm.this = azurerm.this + } + + name = var.storage_account_name + resource_group_name = module.resource_group.resource_group_name + location = var.location + tags = var.tags + # Puedes añadir más variables según la documentación del módulo +} + diff --git a/terraform/outputs.tf b/terraform/outputs.tf index ccfd84e..b334cf4 100644 --- a/terraform/outputs.tf +++ b/terraform/outputs.tf @@ -34,4 +34,14 @@ output "vnet_name" { output "subnet_id" { description = "The ID of the subnet" value = module.network.subnet_id +} + +output "storage_account_name" { + description = "The name of the Azure Storage Account" + value = module.storage_account.name +} + +output "storage_account_id" { + description = "The ID of the Azure Storage Account" + value = module.storage_account.id } \ No newline at end of file diff --git a/terraform/terraform.tfvars.example b/terraform/terraform.tfvars.example index 5379560..fd46460 100644 --- a/terraform/terraform.tfvars.example +++ b/terraform/terraform.tfvars.example @@ -28,4 +28,7 @@ node_count = 2 enable_auto_scaling = true min_node_count = 1 max_node_count = 3 -os_disk_size_gb = 30 \ No newline at end of file +os_disk_size_gb = 30 + +# Storage Account +storage_account_name = "heroesstorage001" \ No newline at end of file diff --git a/terraform/variables.tf b/terraform/variables.tf index 1feca36..ac2e30a 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -108,3 +108,9 @@ variable "os_disk_size_gb" { type = number default = 30 } + +variable "storage_account_name" { + description = "The name of the Azure Storage Account" + type = string + default = "heroesstorage${random_integer.suffix.result}" +}