AWS OpsWorks Application
This page shows how to write Terraform and CloudFormation for OpsWorks Application and write them securely.
aws_opsworks_application (Terraform)
The Application in OpsWorks can be configured in Terraform with the resource name aws_opsworks_application. The following sections describe 3 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_opsworks_application" "opsworks_app_ssl_enabled" {
name = "foobar application"
short_name = "foobar"
stack_id = "ExampleStackID"
type = "rails"
description = "This is a Rails application"
resource "aws_opsworks_application" "opsworks_app_ssl_enabled" {
name = "foobar application"
short_name = "foobar"
stack_id = "ExampleStackID"
type = "rails"
description = "This is a Rails application"
resource "aws_opsworks_application" "this" {
auto_bundle_on_deploy = var.auto_bundle_on_deploy
aws_flow_ruby_settings = var.aws_flow_ruby_settings
data_source_arn = var.data_source_arn
data_source_database_name = var.data_source_database_name
data_source_type = var.data_source_type
Parameters
-
auto_bundle_on_deployoptional - string -
aws_flow_ruby_settingsoptional - string -
data_source_arnoptional - string -
data_source_database_nameoptional - string -
data_source_typeoptional - string -
descriptionoptional - string -
document_rootoptional - string -
domainsoptional - list of string -
enable_ssloptional - bool -
idoptional computed - string -
namerequired - string -
rails_envoptional - string -
short_nameoptional computed - string -
stack_idrequired - string -
typerequired - string -
app_sourcelist block -
environmentset block -
ssl_configurationlist block-
certificaterequired - string -
chainoptional - string -
private_keyrequired - string
-
Explanation in Terraform Registry
Provides an OpsWorks application resource.
AWS::OpsWorks::App (CloudFormation)
The App in OpsWorks can be configured in CloudFormation with the resource name AWS::OpsWorks::App. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
-
AppSourceoptional - Source -
Attributesoptional - Map -
DataSourcesoptional - List of DataSource -
Descriptionoptional - String -
Domainsoptional - List -
EnableSsloptional - Boolean -
Environmentoptional - List of EnvironmentVariable -
Namerequired - String -
Shortnameoptional - String -
SslConfigurationoptional - SslConfiguration -
StackIdrequired - String -
Typerequired - String
Explanation in CloudFormation Registry
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.
Frequently asked questions
What is AWS OpsWorks Application?
AWS OpsWorks Application is a resource for OpsWorks of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.
Where can I find the example code for the AWS OpsWorks Application?
For Terraform, the ffsclyh/config-lint, stelligent/config-lint and niveklabs/aws source code examples are useful. See the Terraform Example section for further details.