To apply Terraform to deploy your Spring Boot apps to K8s
Despliegue de Infraestructura
# Navegar al directorio terraform
cd terraform
# Inicializar Terraform
terraform init
# Verificar configuración
terraform validate
# Generar plan
terraform plan -out=tfplan
# Ver resumen de cambios (opcional)
terraform show -json tfplan | ConvertFrom-Json | Select-Object -ExpandProperty resource_changes | ForEach-Object { "$($_.change.actions): $($_.type).$($_.name)" }
# Aplicar infraestructura (15-20 minutos aproximadamente)
terraform apply tfplan
# O aplicar directamente: terraform apply -auto-approve
Top comments (0)