[Terraform]resource名を変更したい場合

LINEで送る
Pocket

https://www.terraform.io/docs/cli/commands/state/mv.html

  • 一度直でresource名修正して、以下実行する
$ terraform state mv aws_instance.apachin-app aws_instance.adachin-app

 

Was this helpful?

0 / 0

コメントを残す 0

Your email address will not be published. Required fields are marked *