back

by jtwaleson·9y ago·view on hn ↗
Does anyone know if the 256 character limit for the value is in place like in ECS? Super annoying.
2 comments
You could probably split longer data into multiple variables and concatenate them, but maybe having such large environment variables is a sign that you might be better served with a different mechanism.

For example, instead of passing in a big JSON blob, one could split the JSON keys into separate environment variables.

I wanted to add a 2K public key, could be split up but annoying solution. Used a IAM role with rights to an S3 object in the end.
If you can, you should switch to elliptic curve keys – they are less than 256 bytes.
I just tested and didn't run into a 256 character limit. Looks like you can use anything and any number of variables as long as the total size is <4k.