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_deploy
optional - string -
aws_flow_ruby_settings
optional - string -
data_source_arn
optional - string -
data_source_database_name
optional - string -
data_source_type
optional - string -
description
optional - string -
document_root
optional - string -
domains
optional - list of string -
enable_ssl
optional - bool -
id
optional computed - string -
name
required - string -
rails_env
optional - string -
short_name
optional computed - string -
stack_id
required - string -
type
required - string -
app_source
list block -
environment
set block -
ssl_configuration
list block-
certificate
required - string -
chain
optional - string -
private_key
required - 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
-
AppSource
optional - Source -
Attributes
optional - Map -
DataSources
optional - List of DataSource -
Description
optional - String -
Domains
optional - List -
EnableSsl
optional - Boolean -
Environment
optional - List of EnvironmentVariable -
Name
required - String -
Shortname
optional - String -
SslConfiguration
optional - SslConfiguration -
StackId
required - String -
Type
required - 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.