- Más nuevo
- Más votos
- Más comentarios
This issue is likely related to the environment variable size limit in Elastic Beanstalk rather than a bug. Elastic Beanstalk has a limit of 4096 bytes for all environment variables combined (including their names and values).
When you add a new environment variable and it appears to save initially but then disappears after the update completes, it's typically because you've hit this size limitation. The system allows you to add the variable in the UI, but when it tries to persist the change, it fails silently because the total size exceeds the limit.
To resolve this issue, you could try:
- Reduce the size of your existing environment variable names and values where possible
- Move some less sensitive configuration directly into your codebase
- Remove some existing environment variables that may not be critical
- Use AWS Systems Manager Parameter Store to store larger sets of configuration data, and retrieve these in your application code as needed
Another approach is to use the command line with eb setenv VAR1=value1 VAR2=value2 which might provide more explicit error messages about what's causing the problem.
Sources
Environment variables in beanstalk are removed | AWS re:Post
Environment variables and other software settings - AWS Elastic Beanstalk
Yes it worked. But please tell your devs to provide any feedback not to wasy everyone's time.
Contenido relevante
- preguntada hace 4 meses
- preguntada hace un mes
- preguntada hace un mes
- preguntada hace 23 días

Even if it's true, it's still a bug. First of all, 4096 is not much, and what's the reason for such a restriction? Secondly, your UI must at least return some message or error information else someone can just be crazy (like me) because there is no obvious reason for it.