tech:terraform:start

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 [09/03/2020 06:39] 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 +== documentación 
-=== básicos +  * [[tech:terraform:cli]] 
-  * **init** Initialize a new or existing Terraform configuration +  * [[tech:terraform:terraform-state]] 
-  * **validate** Validates the Terraform files +  * [[tech:terraform:variables]] 
-  * **plan** Generate and show an execution plan +  * [[tech:terraform:data-sources]] 
-  * **fmt** Rewrites config files to canonical format +  * [[tech:terraform:modules]]
-  * **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 +===PoC 
-  * **refresh** Update local state file against real resources +  * [[tech:terraform:poc:workspaces]]
-  * **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 +=== related 
-  * ''terraform -install-autocomplete'' : bash/zsh +{{topic>terraform +cursos&nodate&nouser&tags&sort}} 
-  * ''terraform -uninstall-autocomplete'' +{{topic>terraform +libros&nodate&nouser&tags&sort}} 
- +=== enlaces documentación 
-== enlaces documentación +  0.12: [[https://www.terraform.io/docs/configuration/index.html]] 
-=== 0.11 +  * 0.11: [[https://www.terraform.io/docs/configuration-0-11/interpolation.html: interpolación (referenciar variables, atributos de recursos, llamar funciones)]]
-  * [[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 73: 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.1583761171.txt.gz
  • Darrera modificació: 09/03/2020 06:39
  • per mate