Skip to content

Commit

Permalink
Merge pull request #128 from binbashar/leverage-tf-import-zsh
Browse files Browse the repository at this point in the history
Doc/ leverage terraform import zsh scape chars

@angelofenoglio @diego-ojeda-binbash I'll proceed to merge, please let me know if you have any feedback.
  • Loading branch information
exequielrafaela authored Jul 6, 2022
2 parents 3de0848 + 7669c0a commit c297e9f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/user-guide/leverage-cli/reference/terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,12 @@ Equivalent to `terraform import`.
Import the resource with the given ID into the Terraform state at the given ADDRESS.

Can only be run at **layer** level.

!!! info "zsh globbing"
Zsh users may need to prepend `noglob` to the import command for it to be recognized correctly, as an alternative, square brackets can be escaped as `\[\]`
**Examples:**
- Opt-1: `leverage tf import module.s3_bucket.aws_s3_bucket.this\[0\] s3-bag-data-bucket`
- Opt-2: `noglob leverage tf import module.s3_bucket.aws_s3_bucket.this[0] s3-bag-data-bucket`



0 comments on commit c297e9f

Please sign in to comment.