For anyone having trouble setting environment variables using AWS console when the value contains white space, make sure to wrap the value in single quotes like: 'My value with spaces'.
Will include the event entry to make this fix easier to find for others:
[Instance: i-XXXXXXXXXX] Command failed on instance. Return code: 6 Output: nginx: [emerg] invalid number of arguments in "fastcgi_param" directive in /etc/nginx/fastcgi_params_env:3 nginx: configuration file /etc/nginx/nginx.conf test failed. Hook /opt/elasticbeanstalk/hooks/configdeploy/enact/99_reload_app_server.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
For anyone having trouble setting environment variables using AWS console when the value contains white space, make sure to wrap the value in single quotes like: 'My value with spaces'.
Will include the event entry to make this fix easier to find for others:
[Instance: i-XXXXXXXXXX] Command failed on instance. Return code: 6 Output: nginx: [emerg] invalid number of arguments in "fastcgi_param" directive in /etc/nginx/fastcgi_params_env:3 nginx: configuration file /etc/nginx/nginx.conf test failed. Hook /opt/elasticbeanstalk/hooks/configdeploy/enact/99_reload_app_server.sh failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.