UpdateApp - OpsWorks


Updates a specified app.

Required Permissions: To use this action, an IAM user must have a Deploy or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

Request Syntax

{ "AppId": "string", "AppSource": { "Password": "string", "Revision": "string", "SshKey": "string", "Type": "string", "Url": "string", "Username": "string" }, "Attributes": { "string" : "string" }, "DataSources": [ { "Arn": "string", "DatabaseName": "string", "Type": "string" } ], "Description": "string", "Domains": [ "string" ], "EnableSsl": boolean, "Environment": [ { "Key": "string", "Secure": boolean, "Value": "string" } ], "Name": "string", "SslConfiguration": { "Certificate": "string", "Chain": "string", "PrivateKey": "string" }, "Type": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.


The app ID.

Type: String

Required: Yes


A Source object that specifies the app repository.

Type: Source object

Required: No


One or more user-defined key/value pairs to be added to the stack attributes.

Type: String to string map

Valid Keys: DocumentRoot | RailsEnv | AutoBundleOnDeploy | AwsFlowRubySettings

Required: No


The app's data sources.

Type: Array of DataSource objects

Required: No


A description of the app.

Type: String

Required: No


The app's virtual host settings, with multiple domains separated by commas. For example: 'www.example.com, example.com'

Type: Array of strings

Required: No


Whether SSL is enabled for the app.

Type: Boolean

Required: No


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 instances.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 20 KB)."


If you have specified one or more environment variables, you cannot modify the stack's Chef version.

Type: Array of EnvironmentVariable objects

Required: No


The app name.

Type: String

Required: No


An SslConfiguration object with the SSL configuration.

Type: SslConfiguration object

Required: No


The app type.

Type: String

Valid Values: aws-flow-ruby | java | rails | php | nodejs | static | other

Required: No

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.


For information about the errors that are common to all actions, see Common Errors.


Indicates that a resource was not found.

HTTP Status Code: 400


Indicates that a request was not valid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: