Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 1 KB

2023-08-18-terraform_targeting.md

File metadata and controls

19 lines (17 loc) · 1 KB
title date draft categories tags
terraform targeting
2023-08-18 16:54:04 -0500
false
daily
blog

terraform targeting

https://github.com/ridingintraffic/ridingintraffic.github.com/wiki/code_sre#terraform-targetingd Yes you are supposed to never use a targeted plan and apply in terraform becuase it is the violation of the Infra as code creed. But you know what sometimes you just gotta do a thing and get it done. Then you never want to remember your shame and as a result you go and forget how to do that thing. so here it is

 terraform  plan -target="aws_appautoscaling_scheduled_action.app_scheduled_down" -target="aws_appautoscaling_scheduled_action.app_scheduled_up" input=false -compact-warnings -out plan-dev.tfplan

apply

terraform  apply -target="aws_appautoscaling_scheduled_action.app_scheduled_down" -target="aws_appautoscaling_scheduled_action.app_scheduled_up"