QuestionQ87

Terraform state management

What is the purpose of an import block?

  • A Migrate resources from one Terraform state file to another.
  • B Install a module.
  • C Combine Terraform state files.
  • D Import existing resources into state.
Explanation

An import block declares an existing infrastructure resource that Terraform should import and add to its state, so the resource can subsequently be managed by the configuration.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!