Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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"
}
```