Try AWS Native preview for resources not in the classic version.
aws.opsworks.Application
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Provides an OpsWorks application resource.
Example Usage
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var foo_app = new Aws.OpsWorks.Application("foo-app", new()
{
ShortName = "foobar",
StackId = aws_opsworks_stack.Main.Id,
Type = "rails",
Description = "This is a Rails application",
Domains = new[]
{
"example.com",
"sub.example.com",
},
Environments = new[]
{
new Aws.OpsWorks.Inputs.ApplicationEnvironmentArgs
{
Key = "key",
Value = "value",
Secure = false,
},
},
AppSources = new[]
{
new Aws.OpsWorks.Inputs.ApplicationAppSourceArgs
{
Type = "git",
Revision = "master",
Url = "https://github.com/example.git",
},
},
EnableSsl = true,
SslConfigurations = new[]
{
new Aws.OpsWorks.Inputs.ApplicationSslConfigurationArgs
{
PrivateKey = File.ReadAllText("./foobar.key"),
Certificate = File.ReadAllText("./foobar.crt"),
},
},
DocumentRoot = "public",
AutoBundleOnDeploy = "true",
RailsEnv = "staging",
});
});
package main
import (
"os"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opsworks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func readFileOrPanic(path string) pulumi.StringPtrInput {
data, err := os.ReadFile(path)
if err != nil {
panic(err.Error())
}
return pulumi.String(string(data))
}
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opsworks.NewApplication(ctx, "foo-app", &opsworks.ApplicationArgs{
ShortName: pulumi.String("foobar"),
StackId: pulumi.Any(aws_opsworks_stack.Main.Id),
Type: pulumi.String("rails"),
Description: pulumi.String("This is a Rails application"),
Domains: pulumi.StringArray{
pulumi.String("example.com"),
pulumi.String("sub.example.com"),
},
Environments: opsworks.ApplicationEnvironmentArray{
&opsworks.ApplicationEnvironmentArgs{
Key: pulumi.String("key"),
Value: pulumi.String("value"),
Secure: pulumi.Bool(false),
},
},
AppSources: opsworks.ApplicationAppSourceArray{
&opsworks.ApplicationAppSourceArgs{
Type: pulumi.String("git"),
Revision: pulumi.String("master"),
Url: pulumi.String("https://github.com/example.git"),
},
},
EnableSsl: pulumi.Bool(true),
SslConfigurations: opsworks.ApplicationSslConfigurationArray{
&opsworks.ApplicationSslConfigurationArgs{
PrivateKey: readFileOrPanic("./foobar.key"),
Certificate: readFileOrPanic("./foobar.crt"),
},
},
DocumentRoot: pulumi.String("public"),
AutoBundleOnDeploy: pulumi.String("true"),
RailsEnv: pulumi.String("staging"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.opsworks.Application;
import com.pulumi.aws.opsworks.ApplicationArgs;
import com.pulumi.aws.opsworks.inputs.ApplicationEnvironmentArgs;
import com.pulumi.aws.opsworks.inputs.ApplicationAppSourceArgs;
import com.pulumi.aws.opsworks.inputs.ApplicationSslConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo_app = new Application("foo-app", ApplicationArgs.builder()
.shortName("foobar")
.stackId(aws_opsworks_stack.main().id())
.type("rails")
.description("This is a Rails application")
.domains(
"example.com",
"sub.example.com")
.environments(ApplicationEnvironmentArgs.builder()
.key("key")
.value("value")
.secure(false)
.build())
.appSources(ApplicationAppSourceArgs.builder()
.type("git")
.revision("master")
.url("https://github.com/example.git")
.build())
.enableSsl(true)
.sslConfigurations(ApplicationSslConfigurationArgs.builder()
.privateKey(Files.readString(Paths.get("./foobar.key")))
.certificate(Files.readString(Paths.get("./foobar.crt")))
.build())
.documentRoot("public")
.autoBundleOnDeploy(true)
.railsEnv("staging")
.build());
}
}
import pulumi
import pulumi_aws as aws
foo_app = aws.opsworks.Application("foo-app",
short_name="foobar",
stack_id=aws_opsworks_stack["main"]["id"],
type="rails",
description="This is a Rails application",
domains=[
"example.com",
"sub.example.com",
],
environments=[aws.opsworks.ApplicationEnvironmentArgs(
key="key",
value="value",
secure=False,
)],
app_sources=[aws.opsworks.ApplicationAppSourceArgs(
type="git",
revision="master",
url="https://github.com/example.git",
)],
enable_ssl=True,
ssl_configurations=[aws.opsworks.ApplicationSslConfigurationArgs(
private_key=(lambda path: open(path).read())("./foobar.key"),
certificate=(lambda path: open(path).read())("./foobar.crt"),
)],
document_root="public",
auto_bundle_on_deploy="true",
rails_env="staging")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as fs from "fs";
const foo_app = new aws.opsworks.Application("foo-app", {
shortName: "foobar",
stackId: aws_opsworks_stack.main.id,
type: "rails",
description: "This is a Rails application",
domains: [
"example.com",
"sub.example.com",
],
environments: [{
key: "key",
value: "value",
secure: false,
}],
appSources: [{
type: "git",
revision: "master",
url: "https://github.com/example.git",
}],
enableSsl: true,
sslConfigurations: [{
privateKey: fs.readFileSync("./foobar.key"),
certificate: fs.readFileSync("./foobar.crt"),
}],
documentRoot: "public",
autoBundleOnDeploy: "true",
railsEnv: "staging",
});
resources:
foo-app:
type: aws:opsworks:Application
properties:
shortName: foobar
stackId: ${aws_opsworks_stack.main.id}
type: rails
description: This is a Rails application
domains:
- example.com
- sub.example.com
environments:
- key: key
value: value
secure: false
appSources:
- type: git
revision: master
url: https://github.com/example.git
enableSsl: true
sslConfigurations:
- privateKey:
fn::readFile: ./foobar.key
certificate:
fn::readFile: ./foobar.crt
documentRoot: public
autoBundleOnDeploy: true
railsEnv: staging
Create Application Resource
new Application(name: string, args: ApplicationArgs, opts?: CustomResourceOptions);
@overload
def Application(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_sources: Optional[Sequence[ApplicationAppSourceArgs]] = None,
auto_bundle_on_deploy: Optional[str] = None,
aws_flow_ruby_settings: Optional[str] = None,
data_source_arn: Optional[str] = None,
data_source_database_name: Optional[str] = None,
data_source_type: Optional[str] = None,
description: Optional[str] = None,
document_root: Optional[str] = None,
domains: Optional[Sequence[str]] = None,
enable_ssl: Optional[bool] = None,
environments: Optional[Sequence[ApplicationEnvironmentArgs]] = None,
name: Optional[str] = None,
rails_env: Optional[str] = None,
short_name: Optional[str] = None,
ssl_configurations: Optional[Sequence[ApplicationSslConfigurationArgs]] = None,
stack_id: Optional[str] = None,
type: Optional[str] = None)
@overload
def Application(resource_name: str,
args: ApplicationArgs,
opts: Optional[ResourceOptions] = None)
func NewApplication(ctx *Context, name string, args ApplicationArgs, opts ...ResourceOption) (*Application, error)
public Application(string name, ApplicationArgs args, CustomResourceOptions? opts = null)
public Application(String name, ApplicationArgs args)
public Application(String name, ApplicationArgs args, CustomResourceOptions options)
type: aws:opsworks:Application
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Application Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Application resource accepts the following input properties:
- Stack
Id string ID of the stack the application will belong to.
- Type string
Opsworks application type. One of
aws-flow-ruby
,java
,rails
,php
,nodejs
,static
orother
.- App
Sources List<ApplicationApp Source> SCM configuration of the app as described below.
- Auto
Bundle stringOn Deploy Run bundle install when deploying for application of type
rails
.- Aws
Flow stringRuby Settings Specify activity and workflow workers for your app using the aws-flow gem.
- Data
Source stringArn The data source's ARN.
- Data
Source stringDatabase Name The database name.
- Data
Source stringType The data source's type one of
AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.- Description string
A description of the app.
- Document
Root string Subfolder for the document root for application of type
rails
.- Domains List<string>
A list of virtual host alias.
- Enable
Ssl bool Whether to enable SSL for the app. This must be set in order to let
ssl_configuration.private_key
,ssl_configuration.certificate
andssl_configuration.chain
take effect.- Environments
List<Application
Environment> Object to define environment variables. Object is described below.
- Name string
A human-readable name for the application.
- Rails
Env string The name of the Rails environment for application of type
rails
.- Short
Name string A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
- Ssl
Configurations List<ApplicationSsl Configuration> The SSL configuration of the app. Object is described below.
- Stack
Id string ID of the stack the application will belong to.
- Type string
Opsworks application type. One of
aws-flow-ruby
,java
,rails
,php
,nodejs
,static
orother
.- App
Sources []ApplicationApp Source Args SCM configuration of the app as described below.
- Auto
Bundle stringOn Deploy Run bundle install when deploying for application of type
rails
.- Aws
Flow stringRuby Settings Specify activity and workflow workers for your app using the aws-flow gem.
- Data
Source stringArn The data source's ARN.
- Data
Source stringDatabase Name The database name.
- Data
Source stringType The data source's type one of
AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.- Description string
A description of the app.
- Document
Root string Subfolder for the document root for application of type
rails
.- Domains []string
A list of virtual host alias.
- Enable
Ssl bool Whether to enable SSL for the app. This must be set in order to let
ssl_configuration.private_key
,ssl_configuration.certificate
andssl_configuration.chain
take effect.- Environments
[]Application
Environment Args Object to define environment variables. Object is described below.
- Name string
A human-readable name for the application.
- Rails
Env string The name of the Rails environment for application of type
rails
.- Short
Name string A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
- Ssl
Configurations []ApplicationSsl Configuration Args The SSL configuration of the app. Object is described below.
- stack
Id String ID of the stack the application will belong to.
- type String
Opsworks application type. One of
aws-flow-ruby
,java
,rails
,php
,nodejs
,static
orother
.- app
Sources List<ApplicationApp Source> SCM configuration of the app as described below.
- auto
Bundle StringOn Deploy Run bundle install when deploying for application of type
rails
.- aws
Flow StringRuby Settings Specify activity and workflow workers for your app using the aws-flow gem.
- data
Source StringArn The data source's ARN.
- data
Source StringDatabase Name The database name.
- data
Source StringType The data source's type one of
AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.- description String
A description of the app.
- document
Root String Subfolder for the document root for application of type
rails
.- domains List<String>
A list of virtual host alias.
- enable
Ssl Boolean Whether to enable SSL for the app. This must be set in order to let
ssl_configuration.private_key
,ssl_configuration.certificate
andssl_configuration.chain
take effect.- environments
List<Application
Environment> Object to define environment variables. Object is described below.
- name String
A human-readable name for the application.
- rails
Env String The name of the Rails environment for application of type
rails
.- short
Name String A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
- ssl
Configurations List<ApplicationSsl Configuration> The SSL configuration of the app. Object is described below.
- stack
Id string ID of the stack the application will belong to.
- type string
Opsworks application type. One of
aws-flow-ruby
,java
,rails
,php
,nodejs
,static
orother
.- app
Sources ApplicationApp Source[] SCM configuration of the app as described below.
- auto
Bundle stringOn Deploy Run bundle install when deploying for application of type
rails
.- aws
Flow stringRuby Settings Specify activity and workflow workers for your app using the aws-flow gem.
- data
Source stringArn The data source's ARN.
- data
Source stringDatabase Name The database name.
- data
Source stringType The data source's type one of
AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.- description string
A description of the app.
- document
Root string Subfolder for the document root for application of type
rails
.- domains string[]
A list of virtual host alias.
- enable
Ssl boolean Whether to enable SSL for the app. This must be set in order to let
ssl_configuration.private_key
,ssl_configuration.certificate
andssl_configuration.chain
take effect.- environments
Application
Environment[] Object to define environment variables. Object is described below.
- name string
A human-readable name for the application.
- rails
Env string The name of the Rails environment for application of type
rails
.- short
Name string A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
- ssl
Configurations ApplicationSsl Configuration[] The SSL configuration of the app. Object is described below.
- stack_
id str ID of the stack the application will belong to.
- type str
Opsworks application type. One of
aws-flow-ruby
,java
,rails
,php
,nodejs
,static
orother
.- app_
sources Sequence[ApplicationApp Source Args] SCM configuration of the app as described below.
- auto_
bundle_ stron_ deploy Run bundle install when deploying for application of type
rails
.- aws_
flow_ strruby_ settings Specify activity and workflow workers for your app using the aws-flow gem.
- data_
source_ strarn The data source's ARN.
- data_
source_ strdatabase_ name The database name.
- data_
source_ strtype The data source's type one of
AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.- description str
A description of the app.
- document_
root str Subfolder for the document root for application of type
rails
.- domains Sequence[str]
A list of virtual host alias.
- enable_
ssl bool Whether to enable SSL for the app. This must be set in order to let
ssl_configuration.private_key
,ssl_configuration.certificate
andssl_configuration.chain
take effect.- environments
Sequence[Application
Environment Args] Object to define environment variables. Object is described below.
- name str
A human-readable name for the application.
- rails_
env str The name of the Rails environment for application of type
rails
.- short_
name str A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
- ssl_
configurations Sequence[ApplicationSsl Configuration Args] The SSL configuration of the app. Object is described below.
- stack
Id String ID of the stack the application will belong to.
- type String
Opsworks application type. One of
aws-flow-ruby
,java
,rails
,php
,nodejs
,static
orother
.- app
Sources List<Property Map> SCM configuration of the app as described below.
- auto
Bundle StringOn Deploy Run bundle install when deploying for application of type
rails
.- aws
Flow StringRuby Settings Specify activity and workflow workers for your app using the aws-flow gem.
- data
Source StringArn The data source's ARN.
- data
Source StringDatabase Name The database name.
- data
Source StringType The data source's type one of
AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.- description String
A description of the app.
- document
Root String Subfolder for the document root for application of type
rails
.- domains List<String>
A list of virtual host alias.
- enable
Ssl Boolean Whether to enable SSL for the app. This must be set in order to let
ssl_configuration.private_key
,ssl_configuration.certificate
andssl_configuration.chain
take effect.- environments List<Property Map>
Object to define environment variables. Object is described below.
- name String
A human-readable name for the application.
- rails
Env String The name of the Rails environment for application of type
rails
.- short
Name String A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
- ssl
Configurations List<Property Map> The SSL configuration of the app. Object is described below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Application resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing Application Resource
Get an existing Application resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ApplicationState, opts?: CustomResourceOptions): Application
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_sources: Optional[Sequence[ApplicationAppSourceArgs]] = None,
auto_bundle_on_deploy: Optional[str] = None,
aws_flow_ruby_settings: Optional[str] = None,
data_source_arn: Optional[str] = None,
data_source_database_name: Optional[str] = None,
data_source_type: Optional[str] = None,
description: Optional[str] = None,
document_root: Optional[str] = None,
domains: Optional[Sequence[str]] = None,
enable_ssl: Optional[bool] = None,
environments: Optional[Sequence[ApplicationEnvironmentArgs]] = None,
name: Optional[str] = None,
rails_env: Optional[str] = None,
short_name: Optional[str] = None,
ssl_configurations: Optional[Sequence[ApplicationSslConfigurationArgs]] = None,
stack_id: Optional[str] = None,
type: Optional[str] = None) -> Application
func GetApplication(ctx *Context, name string, id IDInput, state *ApplicationState, opts ...ResourceOption) (*Application, error)
public static Application Get(string name, Input<string> id, ApplicationState? state, CustomResourceOptions? opts = null)
public static Application get(String name, Output<String> id, ApplicationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- App
Sources List<ApplicationApp Source> SCM configuration of the app as described below.
- Auto
Bundle stringOn Deploy Run bundle install when deploying for application of type
rails
.- Aws
Flow stringRuby Settings Specify activity and workflow workers for your app using the aws-flow gem.
- Data
Source stringArn The data source's ARN.
- Data
Source stringDatabase Name The database name.
- Data
Source stringType The data source's type one of
AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.- Description string
A description of the app.
- Document
Root string Subfolder for the document root for application of type
rails
.- Domains List<string>
A list of virtual host alias.
- Enable
Ssl bool Whether to enable SSL for the app. This must be set in order to let
ssl_configuration.private_key
,ssl_configuration.certificate
andssl_configuration.chain
take effect.- Environments
List<Application
Environment> Object to define environment variables. Object is described below.
- Name string
A human-readable name for the application.
- Rails
Env string The name of the Rails environment for application of type
rails
.- Short
Name string A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
- Ssl
Configurations List<ApplicationSsl Configuration> The SSL configuration of the app. Object is described below.
- Stack
Id string ID of the stack the application will belong to.
- Type string
Opsworks application type. One of
aws-flow-ruby
,java
,rails
,php
,nodejs
,static
orother
.
- App
Sources []ApplicationApp Source Args SCM configuration of the app as described below.
- Auto
Bundle stringOn Deploy Run bundle install when deploying for application of type
rails
.- Aws
Flow stringRuby Settings Specify activity and workflow workers for your app using the aws-flow gem.
- Data
Source stringArn The data source's ARN.
- Data
Source stringDatabase Name The database name.
- Data
Source stringType The data source's type one of
AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.- Description string
A description of the app.
- Document
Root string Subfolder for the document root for application of type
rails
.- Domains []string
A list of virtual host alias.
- Enable
Ssl bool Whether to enable SSL for the app. This must be set in order to let
ssl_configuration.private_key
,ssl_configuration.certificate
andssl_configuration.chain
take effect.- Environments
[]Application
Environment Args Object to define environment variables. Object is described below.
- Name string
A human-readable name for the application.
- Rails
Env string The name of the Rails environment for application of type
rails
.- Short
Name string A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
- Ssl
Configurations []ApplicationSsl Configuration Args The SSL configuration of the app. Object is described below.
- Stack
Id string ID of the stack the application will belong to.
- Type string
Opsworks application type. One of
aws-flow-ruby
,java
,rails
,php
,nodejs
,static
orother
.
- app
Sources List<ApplicationApp Source> SCM configuration of the app as described below.
- auto
Bundle StringOn Deploy Run bundle install when deploying for application of type
rails
.- aws
Flow StringRuby Settings Specify activity and workflow workers for your app using the aws-flow gem.
- data
Source StringArn The data source's ARN.
- data
Source StringDatabase Name The database name.
- data
Source StringType The data source's type one of
AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.- description String
A description of the app.
- document
Root String Subfolder for the document root for application of type
rails
.- domains List<String>
A list of virtual host alias.
- enable
Ssl Boolean Whether to enable SSL for the app. This must be set in order to let
ssl_configuration.private_key
,ssl_configuration.certificate
andssl_configuration.chain
take effect.- environments
List<Application
Environment> Object to define environment variables. Object is described below.
- name String
A human-readable name for the application.
- rails
Env String The name of the Rails environment for application of type
rails
.- short
Name String A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
- ssl
Configurations List<ApplicationSsl Configuration> The SSL configuration of the app. Object is described below.
- stack
Id String ID of the stack the application will belong to.
- type String
Opsworks application type. One of
aws-flow-ruby
,java
,rails
,php
,nodejs
,static
orother
.
- app
Sources ApplicationApp Source[] SCM configuration of the app as described below.
- auto
Bundle stringOn Deploy Run bundle install when deploying for application of type
rails
.- aws
Flow stringRuby Settings Specify activity and workflow workers for your app using the aws-flow gem.
- data
Source stringArn The data source's ARN.
- data
Source stringDatabase Name The database name.
- data
Source stringType The data source's type one of
AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.- description string
A description of the app.
- document
Root string Subfolder for the document root for application of type
rails
.- domains string[]
A list of virtual host alias.
- enable
Ssl boolean Whether to enable SSL for the app. This must be set in order to let
ssl_configuration.private_key
,ssl_configuration.certificate
andssl_configuration.chain
take effect.- environments
Application
Environment[] Object to define environment variables. Object is described below.
- name string
A human-readable name for the application.
- rails
Env string The name of the Rails environment for application of type
rails
.- short
Name string A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
- ssl
Configurations ApplicationSsl Configuration[] The SSL configuration of the app. Object is described below.
- stack
Id string ID of the stack the application will belong to.
- type string
Opsworks application type. One of
aws-flow-ruby
,java
,rails
,php
,nodejs
,static
orother
.
- app_
sources Sequence[ApplicationApp Source Args] SCM configuration of the app as described below.
- auto_
bundle_ stron_ deploy Run bundle install when deploying for application of type
rails
.- aws_
flow_ strruby_ settings Specify activity and workflow workers for your app using the aws-flow gem.
- data_
source_ strarn The data source's ARN.
- data_
source_ strdatabase_ name The database name.
- data_
source_ strtype The data source's type one of
AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.- description str
A description of the app.
- document_
root str Subfolder for the document root for application of type
rails
.- domains Sequence[str]
A list of virtual host alias.
- enable_
ssl bool Whether to enable SSL for the app. This must be set in order to let
ssl_configuration.private_key
,ssl_configuration.certificate
andssl_configuration.chain
take effect.- environments
Sequence[Application
Environment Args] Object to define environment variables. Object is described below.
- name str
A human-readable name for the application.
- rails_
env str The name of the Rails environment for application of type
rails
.- short_
name str A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
- ssl_
configurations Sequence[ApplicationSsl Configuration Args] The SSL configuration of the app. Object is described below.
- stack_
id str ID of the stack the application will belong to.
- type str
Opsworks application type. One of
aws-flow-ruby
,java
,rails
,php
,nodejs
,static
orother
.
- app
Sources List<Property Map> SCM configuration of the app as described below.
- auto
Bundle StringOn Deploy Run bundle install when deploying for application of type
rails
.- aws
Flow StringRuby Settings Specify activity and workflow workers for your app using the aws-flow gem.
- data
Source StringArn The data source's ARN.
- data
Source StringDatabase Name The database name.
- data
Source StringType The data source's type one of
AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.- description String
A description of the app.
- document
Root String Subfolder for the document root for application of type
rails
.- domains List<String>
A list of virtual host alias.
- enable
Ssl Boolean Whether to enable SSL for the app. This must be set in order to let
ssl_configuration.private_key
,ssl_configuration.certificate
andssl_configuration.chain
take effect.- environments List<Property Map>
Object to define environment variables. Object is described below.
- name String
A human-readable name for the application.
- rails
Env String The name of the Rails environment for application of type
rails
.- short
Name String A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
- ssl
Configurations List<Property Map> The SSL configuration of the app. Object is described below.
- stack
Id String ID of the stack the application will belong to.
- type String
Opsworks application type. One of
aws-flow-ruby
,java
,rails
,php
,nodejs
,static
orother
.
Supporting Types
ApplicationAppSource, ApplicationAppSourceArgs
- Type string
The type of source to use. For example, "archive".
- Password string
Password to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
- Revision string
For sources that are version-aware, the revision to use.
- Ssh
Key string SSH key to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
- Url string
The URL where the app resource can be found.
- Username string
Username to use when authenticating to the source.
- Type string
The type of source to use. For example, "archive".
- Password string
Password to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
- Revision string
For sources that are version-aware, the revision to use.
- Ssh
Key string SSH key to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
- Url string
The URL where the app resource can be found.
- Username string
Username to use when authenticating to the source.
- type String
The type of source to use. For example, "archive".
- password String
Password to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
- revision String
For sources that are version-aware, the revision to use.
- ssh
Key String SSH key to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
- url String
The URL where the app resource can be found.
- username String
Username to use when authenticating to the source.
- type string
The type of source to use. For example, "archive".
- password string
Password to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
- revision string
For sources that are version-aware, the revision to use.
- ssh
Key string SSH key to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
- url string
The URL where the app resource can be found.
- username string
Username to use when authenticating to the source.
- type str
The type of source to use. For example, "archive".
- password str
Password to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
- revision str
For sources that are version-aware, the revision to use.
- ssh_
key str SSH key to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
- url str
The URL where the app resource can be found.
- username str
Username to use when authenticating to the source.
- type String
The type of source to use. For example, "archive".
- password String
Password to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
- revision String
For sources that are version-aware, the revision to use.
- ssh
Key String SSH key to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
- url String
The URL where the app resource can be found.
- username String
Username to use when authenticating to the source.
ApplicationEnvironment, ApplicationEnvironmentArgs
ApplicationSslConfiguration, ApplicationSslConfigurationArgs
- Certificate string
The contents of the certificate's domain.crt file.
- Private
Key string The private key; the contents of the certificate's domain.key file.
- Chain string
Can be used to specify an intermediate certificate authority key or client authentication.
- Certificate string
The contents of the certificate's domain.crt file.
- Private
Key string The private key; the contents of the certificate's domain.key file.
- Chain string
Can be used to specify an intermediate certificate authority key or client authentication.
- certificate String
The contents of the certificate's domain.crt file.
- private
Key String The private key; the contents of the certificate's domain.key file.
- chain String
Can be used to specify an intermediate certificate authority key or client authentication.
- certificate string
The contents of the certificate's domain.crt file.
- private
Key string The private key; the contents of the certificate's domain.key file.
- chain string
Can be used to specify an intermediate certificate authority key or client authentication.
- certificate str
The contents of the certificate's domain.crt file.
- private_
key str The private key; the contents of the certificate's domain.key file.
- chain str
Can be used to specify an intermediate certificate authority key or client authentication.
- certificate String
The contents of the certificate's domain.crt file.
- private
Key String The private key; the contents of the certificate's domain.key file.
- chain String
Can be used to specify an intermediate certificate authority key or client authentication.
Import
Using pulumi import
, import Opsworks Application using the id
. For example:
$ pulumi import aws:opsworks/application:Application test <id>
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.