I would like to run terraform only for a specific resource

You can run terraform plan/apply for a specific resource from your configuration file by using -target=resource parameter.

Run terraform plan/apply for a specific resource in a module:

Run terraform plan/apply for a specific resource in a standalone configuration file:

Leave a Reply

Close Menu