쿠키 기본 설정 선택

당사는 사이트와 서비스를 제공하는 데 필요한 필수 쿠키 및 유사한 도구를 사용합니다. 고객이 사이트를 어떻게 사용하는지 파악하고 개선할 수 있도록 성능 쿠키를 사용해 익명의 통계를 수집합니다. 필수 쿠키는 비활성화할 수 없지만 '사용자 지정' 또는 ‘거부’를 클릭하여 성능 쿠키를 거부할 수 있습니다.

사용자가 동의하는 경우 AWS와 승인된 제3자도 쿠키를 사용하여 유용한 사이트 기능을 제공하고, 사용자의 기본 설정을 기억하고, 관련 광고를 비롯한 관련 콘텐츠를 표시합니다. 필수가 아닌 모든 쿠키를 수락하거나 거부하려면 ‘수락’ 또는 ‘거부’를 클릭하세요. 더 자세한 내용을 선택하려면 ‘사용자 정의’를 클릭하세요.

AWS::OpsWorks::App

포커스 모드
AWS::OpsWorks::App - AWS CloudFormation
이 페이지는 귀하의 언어로 번역되지 않았습니다. 번역 요청
필터 보기

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::OpsWorks::App", "Properties" : { "AppSource" : Source, "Attributes" : {Key: Value, ...}, "DataSources" : [ DataSource, ... ], "Description" : String, "Domains" : [ String, ... ], "EnableSsl" : Boolean, "Environment" : [ EnvironmentVariable, ... ], "Name" : String, "Shortname" : String, "SslConfiguration" : SslConfiguration, "StackId" : String, "Type" : String } }

YAML

Type: AWS::OpsWorks::App Properties: AppSource: Source Attributes: Key: Value DataSources: - DataSource Description: String Domains: - String EnableSsl: Boolean Environment: - EnvironmentVariable Name: String Shortname: String SslConfiguration: SslConfiguration StackId: String Type: String

Properties

AppSource

A Source object that specifies the app repository.

Required: No

Type: Source

Update requires: No interruption

Attributes

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

Required: No

Type: Object of String

Pattern: [a-zA-Z0-9]+

Update requires: No interruption

DataSources

The app's data source.

Required: No

Type: Array of DataSource

Update requires: No interruption

Description

A description of the app.

Required: No

Type: String

Update requires: No interruption

Domains

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

Required: No

Type: Array of String

Update requires: No interruption

EnableSsl

Whether to enable SSL for the app.

Required: No

Type: Boolean

Update requires: No interruption

Environment

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

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

Required: No

Type: Array of EnvironmentVariable

Update requires: No interruption

Name

The app name.

Required: Yes

Type: String

Update requires: No interruption

Shortname

The app's short name.

Required: No

Type: String

Update requires: Replacement

SslConfiguration

An SslConfiguration object with the SSL configuration.

Required: No

Type: SslConfiguration

Update requires: No interruption

StackId

The stack ID.

Required: Yes

Type: String

Update requires: Replacement

Type

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 other.

Required: Yes

Type: String

Allowed values: aws-flow-ruby | java | rails | php | nodejs | static | other

Update requires: No interruption

Return values

Ref

When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the resource name. For example:

{ "Ref": "myApp" }

For the AWS OpsWorks stack myApp, Ref returns the ID of the AWS OpsWorks app.

For more information about using the Ref function, see Ref.

Fn::GetAtt

Examples

Template Snippet

The following snippet creates an AWS OpsWorks app that uses a PHP application in a Git repository:

JSON

"myApp" : { "Type" : "AWS::OpsWorks::App", "Properties" : { "StackId" : {"Ref":"myStack"}, "Type" : "php", "Name" : "myPHPapp", "AppSource" : { "Type" : "git", "Url" : "git://github.com/amazonwebservices/opsworks-demo-php-simple-app.git", "Revision" : "version1" } } }

YAML

myApp: Type: "AWS::OpsWorks::App" Properties: StackId: Ref: "myStack" Type: "php" Name: "myPHPapp" AppSource: Type: "git" Url: "git://github.com/amazonwebservices/opsworks-demo-php-simple-app.git" Revision: "version1"

See also

이 페이지에서

프라이버시사이트 이용 약관쿠키 기본 설정
© 2025, Amazon Web Services, Inc. 또는 계열사. All rights reserved.