https://github.com/bgpat/terraform-provider-shellescape
Terraform data source to escape shell special characters
https://github.com/bgpat/terraform-provider-shellescape
Last synced: 3 months ago
JSON representation
Terraform data source to escape shell special characters
- Host: GitHub
- URL: https://github.com/bgpat/terraform-provider-shellescape
- Owner: bgpat
- License: mit
- Created: 2020-03-07T05:58:55.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-04-01T19:47:27.000Z (3 months ago)
- Last Synced: 2025-04-06T10:02:31.462Z (3 months ago)
- Language: Go
- Homepage: https://registry.terraform.io/providers/bgpat/shellescape/latest
- Size: 173 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform Shell Escape Data Source

A Terraform data source provider to escape shell special characters.
## Usage
```terraform
data "shellescape_quote" "hello" {
string = <<-EOT
_______
< hello >
-------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
EOT
}resource "local_file" "hello" {
content = "echo ${data.shellescape_quote.hello.quoted}"
filename = "hello.sh"
}
```