Skip to content

🔨refactor: Update GitHub Actions prompt mode and add Azure Storage Account configuration #62

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 .github/prompts/github-actions.prompt.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
mode: 'ask'
mode: 'agent'
description: 'Improve GitHub Actions by adding best practices and optimizations.'
---

Expand Down
16 changes: 16 additions & 0 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

10 changes: 10 additions & 0 deletions terraform/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
5 changes: 4 additions & 1 deletion terraform/terraform.tfvars.example
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ node_count = 2
enable_auto_scaling = true
min_node_count = 1
max_node_count = 3
os_disk_size_gb = 30
os_disk_size_gb = 30

# Storage Account
storage_account_name = "heroesstorage001"
6 changes: 6 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
Loading