Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bgpat/terraform-provider-shellescape
Terraform data source to escape shell special characters
https://github.com/bgpat/terraform-provider-shellescape
Last synced: about 2 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 (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-11-07T01:33:28.000Z (about 2 months ago)
- Last Synced: 2024-11-07T02:32:42.460Z (about 2 months ago)
- Language: Go
- Homepage: https://registry.terraform.io/providers/bgpat/shellescape/latest
- Size: 155 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform Shell Escape Data Source
![release](https://github.com/bgpat/terraform-provider-shellescape/workflows/release/badge.svg)
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"
}
```