antonbabenko / modules.tf-lambda

Infrastructure as code generator - from visual diagrams created with Cloudcraft.co to Terraform
https://www.cloudcraft.co/
MIT License
350 stars 56 forks source link

Names with special chars #62

Open Genaker opened 3 years ago

Genaker commented 3 years ago

Describe the bug

function_name = "Lambda 
Microservices"

image

if name has new line it has error during run:

Invalid multi-line string; Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax., and 1 other diagnostic(s) 
ERRO[0000] Unable to determine underlying exit code, so Terragrunt will exit with error code 1

Expected behavior

Remove specials cachers from the name

Actual behavior

Error