Skip to content
Snippets Groups Projects
Commit 114e2ef6 authored by nimrod's avatar nimrod
Browse files

Terraform import wrapper.

parent e5f45272
No related branches found
No related tags found
No related merge requests found
......@@ -161,6 +161,16 @@ tr () {
fi
}
ti () {
workspace="$(terraform workspace show)"
if [ "$workspace" = "default" ]
then
terraform import "$@"
else
terraform import -var-file "$workspace.tfvars" "$@"
fi
}
genpass () {
bytes="${1:-32}"
head --bytes="$bytes" /dev/urandom | base64 --wrap=0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment