v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1474216311.3 KB

Creates an app for a specified stack. For more information, see Creating Apps.

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

post/#X-Amz-Target=OpsWorks_20130218.CreateApp

Headers

X-Amz-Target'OpsWorks_20130218.CreateApp' required

Request body

StackIdstring required

The stack ID.

Shortnamestring

The app's short name.

Namestring required

The app name.

Descriptionstring

A description of the app.

Type'aws-flow-ruby' | 'java' | 'rails' | 'php' | 'nodejs' | 'static' | 'other' required

The app type. Each supported type is associated with a particular layer. For example, PHP applications are associated with a PHP layer. AWS OpsWorks Stacks deploys an application to those instances that are members of the corresponding layer. If your app isn't one of the standard types, or you prefer to implement your own Deploy recipes, specify <code>other</code>.

DomainsString[]

The app virtual host settings, with multiple domains separated by commas. For example: <code>'www.example.com, example.com'</code>

EnableSslboolean

Whether to enable SSL for the app.

Attributesobject

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

Response

Success

AppIdstring

The app ID.