-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Open
Labels
Description
Suppose one declares several concurrent environments in a single tf config.
To limit cli actions to a single environment at a time, it would be convenient if a way existed, via -target to glob-match modules, module_paths, resource_types and resource_names:
terraform apply -target=aws*.staging* # target aws* resource_types
or similarly, for all modules:
terraform apply -target=*.*.staging* # target all modules and resource_types
or similarly, for all module_paths:
terraform apply -target=**.staging* # star star = target all modules and submodules
gmiroshnykov, rmldsky, elocnatsirt, cemo, jujugrrr and 643 moredanihodovic, papalagichen, uLan08, Lutacon, ekinhero and 30 morecohandv, jonigl, roeizavida, gondaz, francis-edejer and 29 morejonigl, cohandv, roeizavida, gondaz, francis-edejer and 25 more