Diferències

Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.

Enllaç a la visualització de la comparació

Ambdós costats versió prèvia Revisió prèvia
Següent revisió
Revisió prèvia
tech:terraform:start [25/03/2020 02:42] – [documentación] matetech:terraform:start [15/05/2020 03:19] (actual) – [related] mate
Línia 1: Línia 1:
-Terraform+TERRAFORM
 {{tag> devops info}} {{tag> devops info}}
   * [[tech:terraform:aws]]   * [[tech:terraform:aws]]
   * [[tech:terraform:azure]]   * [[tech:terraform:azure]]
- 
-== cli 
-=== básicos 
-  * **init** : Initialize a new or existing Terraform configuration 
-  * **validate** : Validates the Terraform files 
-  * **plan** : Generate and show an execution plan 
-  * **fmt** : Rewrites config files to canonical format 
-  * **apply** : Builds or changes infrastructure 
-  * **graph** : Create a visual graph of Terraform resources 
-  * **output** : Read an output from a state file 
-  * **destroy** : Destroy Terraform-managed infrastructure 
- 
-=== otros 
-  * **refresh** : Update local state file against real resources 
-  * **show** : Inspect Terraform state or plan 
-  * **taint** : Manually mark a resource for recreation 
-  * **untaint** : Manually unmark a resource as tainted 
-  * **debug** : Debug output management (experimental) 
-  * **force-unlock** : Manually unlock the terraform state 
-  * **state** : Advanced state management 
- 
-=== autocomplete 
-  * ''terraform %%--%%install-autocomplete'' : bash/zsh 
-  * ''terraform %%--%%uninstall-autocomplete'' 
  
 == documentación == documentación
 +  * [[tech:terraform:cli]]
 +  * [[tech:terraform:terraform-state]]
   * [[tech:terraform:variables]]   * [[tech:terraform:variables]]
 +  * [[tech:terraform:data-sources]]
   * [[tech:terraform:modules]]   * [[tech:terraform:modules]]
  
 +===PoC
 +  * [[tech:terraform:poc:workspaces]]
 +
 +=== related
 +{{topic>terraform +cursos&nodate&nouser&tags&sort}}
 +{{topic>terraform +libros&nodate&nouser&tags&sort}}
 === enlaces documentación === enlaces documentación
-=== 0.11 +  * 0.12: [[https://www.terraform.io/docs/configuration/index.html]] 
-  * [[https://www.terraform.io/docs/configuration-0-11/interpolation.html: interpolación (referenciar variables, atributos de recursos, llamar funciones)]] +  * 0.11: [[https://www.terraform.io/docs/configuration-0-11/interpolation.html: interpolación (referenciar variables, atributos de recursos, llamar funciones)]]
-  * +
  
 == de interés == de interés
Línia 77: Línia 61:
 </code> </code>
  
 +=== dynamic
 +<code properties>
 +
 +variable "virtual_network_rule_ids" {
 +  type = list(map(string))
 +  default = [
 +    { id = "x.x.x.x" },{ id = "y.y.y.y" }
 +  ]
 +}
 +  
 +}
 +resource "..." {
 +
 +  dynamic "virtual_network_rule" {
 +    for_each = var.virtual_network_rule_ids
 +
 +    content {
 +      id = virtual_network_rule.value["id"] # etiqueta dynamic + value + key
 +    }
 +  }
 +}
 +</code>
 === casos de uso === casos de uso
   * [[tech:terraform:casos-uso]]   * [[tech:terraform:casos-uso]]
  • tech/terraform/start.1585129326.txt.gz
  • Darrera modificació: 25/03/2020 02:42
  • per mate