by shigemk2

当面は技術的なことしか書かない

terrafrom target

You can use Terraform's -target option to target specific resources, modules, or collections of resources. In this tutorial, you will provision an S3 bucket with some objects in it, then apply changes incrementally with -target.

terrafrom plan -target=xxxxx
terrafrom apply -target=xxxxx

terrafrom plan --help には

Limit the planning operation to only the given module, resource, or resource instance and all of its dependencies. You can use this option multiple times to include more than one object. This is for exceptional use only.

って出てくるのに、terrafrom apply --help には出てこない。

developer.hashicorp.com