nimblehq / infrastructure-templates

For IaaS and PaaS as codes
MIT License
10 stars 0 forks source link

[#148] Fix: Wrong database_url string in SSM module #149

Closed hoangmirs closed 1 year ago

hoangmirs commented 1 year ago

What happened 👀

Insight 📝

As we're using the Template literals to declare the multiple-line string, then we need to escape the ${} by using /${}, but when writing it to the file, the / was not removed. That is why it's incorrect.

Proof Of Work 📹

The generated code is correct:

Before: main_tf_—_infrastructure-templates

After: main_tf_—_infrastructure-templates