Skip to content

sekai-soft/terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform

How to import an existing resource with TFC

  1. Move all sensitive variables from TFC to prod.auto.tfvars
  2. Declare the resource in Terraform code
  3. Do terraform import with -var-file=prod.auto.tfvars
  4. Try terraform plan and potentially fix resource declaration in Terraform
  5. Move back sensitive variables to TFC
  6. Do a plan and apply again in TFC

Notice: you may not be able to import multiple resources at once if there is dependency among them

HashiCorp official reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages