Environment variable with newline character in amazon opsworks

I am trying to set up an environment variable in Amazon opsworks with a chef. This is for storing a private key that contains newlines. This is not installing correctly and my rails app deployment is failing due to an exception thrown by this wrong variable. Can someone please help me with this?

Thank.

+3


source to share


1 answer


Only printable characters can be used as values โ€‹โ€‹in the environment variable in opsworks, as indicated in the link: http://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html#workingapps-creating-environment .



So, the only way I have found is to replace the special characters as strings, and then, in an application using that character, replace the string representation obtained from the environment variable with the corresponding special character.

+1


source







All Articles