Sets environment properties for the default environment.
This command sets environment properties in the
aws:elasticbeanstalk:application:environment namespace. Environment
properties set with
eb setenv are available to your application after a short
You can include as many properties as you want, but the total size of all properties cannot exceed 4096 bytes. You can delete a variable by leaving the value blank.
value contains a special character, you
must escape that character by preceeding it with a
The number of minutes before the command times out.
If successful, the command displays that the environment update succeeded.
The following example sets the environment variable ExampleVar.
eb setenv ExampleVar=ExampleValueINFO: Environment update is starting. INFO: Updating environment tmp-dev's configuration settings. INFO: Successfully deployed new configuration to environment. INFO: Environment update completed successfully.
The following command sets multiple environment properties. It adds the environment
foo and sets its value to
bar, changes the value of
JDBC_CONNECTION_STRING property, and deletes the
eb setenv foo=bar JDBC_CONNECTION_STRING=hello PARAM4= PARAM5=