tfocus

Select and run Terraform plan/apply on specific resources

brewmacoslinux
Try with needOr install directly
Source

About

Tool for selecting and executing terraform plan/apply on specific resources

Commands

tfocus

Examples

run terraform plan on just one resource$ tfocus plan -resource aws_instance.web
apply terraform changes to selected resources only$ tfocus apply -resource aws_s3_bucket.data -resource aws_s3_bucket_policy.data
interactively choose which resources to plan$ tfocus plan --interactive
run terraform plan excluding certain resources$ tfocus plan -exclude aws_instance.test -exclude aws_instance.staging
safely preview changes before applying to production$ tfocus plan -resource aws_rds_instance.prod --dry-run