Method: Aws::OpsWorks::Types::CreateAppRequest#environment

Defined in:
lib/aws-sdk-opsworks/types.rb

#environmentArray<Types::EnvironmentVariable>

An array of ‘EnvironmentVariable` objects that specify environment variables to be associated with the app. After you deploy the app, these variables are defined on the associated app server instance. For more information, see [ Environment Variables].

There is no specific limit on the number of environment variables. However, the size of the associated data structure - which includes the variables’ names, values, and protected flag values - cannot exceed 20 KB. This limit should accommodate most if not all use cases. Exceeding it will cause an exception with the message, “Environment: is too large (maximum is 20KB).”

<note markdown=“1”> If you have specified one or more environment variables, you cannot modify the stack’s Chef version.

</note>

[1]: docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html#workingapps-creating-environment

Returns:



997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
# File 'lib/aws-sdk-opsworks/types.rb', line 997

class CreateAppRequest < Struct.new(
  :stack_id,
  :shortname,
  :name,
  :description,
  :data_sources,
  :type,
  :app_source,
  :domains,
  :enable_ssl,
  :ssl_configuration,
  :attributes,
  :environment)
  SENSITIVE = []
  include Aws::Structure
end