Created
April 11, 2023 00:12
-
-
Save sergsoares/5ec7923b3a2db60ca00789cb9549e1ac to your computer and use it in GitHub Desktop.
Makefile for select specific resource inside a main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
target: | |
SELECTED=`cat main.tf | grep resource | tr -d '"' | awk '{ print $$2 "." $$3 }' | fzf` ; \ | |
terraform apply -target=$$SELECTED |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment