Terraform apply specific file

2 pointsposted 8 hours ago
by brtkwr

1 Comments

brtkwr

8 hours ago

I have always wondered why terraform doesn't offer a way to apply a specific file similar to how -target option works. I generated my own helper script which finds resources in a file and applies them as follows:

./tf-apply-file.sh example.tf