LoginSignup
42
24

More than 5 years have passed since last update.

特定のresourceだけ terraform {plan|apply} したい

Last updated at Posted at 2018-07-25

Terraformを運用していると特定のリソースだけplanしたりapplyしたいことってあると思います。

そのような場合、 terraform plan -target={resource} terraform apply -target={resource} とすればOKです。

詳細は以下のTerraformドキュメントを参照してください。

resource の指定の仕方は以下のドキュメントを参考にすると良いです。

公式ドキュメントへのリンクをまとめただけになってしまった・・。まぁいいか、自分用メモということで。

ところで特定のresourceだけdestroyしたい、という場合はresourceをtfファイルから削除すればOKだと思います。

42
24
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
42
24