Difference between revisions of "Explain the benefits of state"
Jump to navigation
Jump to search
↑ https://www.terraform.io/language/state
Line 2: | Line 2: | ||
Is stored by default in a local file named [[terraform.tfstate]]. | Is stored by default in a local file named [[terraform.tfstate]]. | ||
− | |||
* <code>[[terraform import]]</code> | * <code>[[terraform import]]</code> | ||
* <code>[[terraform state rm]]</code> | * <code>[[terraform state rm]]</code> | ||
+ | |||
=== Purpose === | === Purpose === |
Revision as of 04:34, 21 February 2022
Terraform must store state about your managed infrastructure and configuration. This state is used by Terraform to map real world resources to your configuration, keep track of metadata, and to improve performance for large infrastructures. [1]
Is stored by default in a local file named terraform.tfstate.
Purpose
- Mapping the Real World
- Metadata
- Syncing
Questions examples
- https://learn.hashicorp.com/tutorials/terraform/associate-questions?in=terraform/certification
- https://www.whizlabs.com/blog/terraform-certification-exam-questions/
- 250 questions and answers: https://medium.com/bb-tutorials-and-thoughts/250-practice-questions-for-terraform-associate-certification-7a3ccebe6a1a
Exercise
See also
- Terraform, OpenTofu, Terrakube.org, Installation, Terraform AWS, Terraform GCP, Terraform commands, Terraform Cloud, Terraform Enterprise (TFE), HCL, HIL, meta-arguments, providers, modules, resource, provisioners, data sources, backends: remote backends, examples, configuration files, state files, variables, types, Terraform Registry, conditionals:
depends_on
, functions, Blocks, dynamic blocks, errors, Terragrunt, Terraformer, Terratest, Terraform certifications, Terraform map type, Terraform Associate, Terraform: list type,TF_VAR_, TF_LOG
, Terraform provider versioning, Terraform Style Conventions, Required version, Terraform plugin, Terraform Named Values, tags, Changelog,tfsec, tflint
, Operators, Expressions:for, splat
, Debugging, Namespaces, Terraform Landing Zones, CDKTF, Atmos - Certifications: Security certifications, Enterprise architecture, Coursera, AWS certifications, CertiProf, Pearson VUE, Terraform Associate, Freecram, ExamLabs
Advertising: