Class Application
Provides an OpsWorks application resource.
Example Usage
using System.IO;
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var foo_app = new Aws.OpsWorks.Application("foo-app", new Aws.OpsWorks.ApplicationArgs
{
AppSources =
{
new Aws.OpsWorks.Inputs.ApplicationAppSourceArgs
{
Revision = "master",
Type = "git",
Url = "https://github.com/example.git",
},
},
AutoBundleOnDeploy = true,
Description = "This is a Rails application",
DocumentRoot = "public",
Domains =
{
"example.com",
"sub.example.com",
},
EnableSsl = true,
Environments =
{
new Aws.OpsWorks.Inputs.ApplicationEnvironmentArgs
{
Key = "key",
Secure = false,
Value = "value",
},
},
RailsEnv = "staging",
ShortName = "foobar",
SslConfigurations =
{
new Aws.OpsWorks.Inputs.ApplicationSslConfigurationArgs
{
Certificate = File.ReadAllText("./foobar.crt"),
PrivateKey = File.ReadAllText("./foobar.key"),
},
},
StackId = aws_opsworks_stack.Main.Id,
Type = "rails",
});
}
}
Inherited Members
Namespace: Pulumi.Aws.OpsWorks
Assembly: Pulumi.Aws.dll
Syntax
public class Application : CustomResource
Constructors
View SourceApplication(String, ApplicationArgs, CustomResourceOptions)
Create a Application resource with the given unique name, arguments, and options.
Declaration
public Application(string name, ApplicationArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ApplicationArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAppSources
SCM configuration of the app as described below.
Declaration
public Output<ImmutableArray<ApplicationAppSource>> AppSources { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<ApplicationAppSource>> |
AutoBundleOnDeploy
Run bundle install when deploying for application of type rails.
Declaration
public Output<string> AutoBundleOnDeploy { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AwsFlowRubySettings
Specify activity and workflow workers for your app using the aws-flow gem.
Declaration
public Output<string> AwsFlowRubySettings { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DataSourceArn
The data source's ARN.
Declaration
public Output<string> DataSourceArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DataSourceDatabaseName
The database name.
Declaration
public Output<string> DataSourceDatabaseName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DataSourceType
The data source's type one of AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance.
Declaration
public Output<string> DataSourceType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Description
A description of the app.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DocumentRoot
Subfolder for the document root for application of type rails.
Declaration
public Output<string> DocumentRoot { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Domains
A list of virtual host alias.
Declaration
public Output<ImmutableArray<string>> Domains { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
EnableSsl
Whether to enable SSL for the app. This must be set in order to let ssl_configuration.private_key, ssl_configuration.certificate and ssl_configuration.chain take effect.
Declaration
public Output<bool?> EnableSsl { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Environments
Object to define environment variables. Object is described below.
Declaration
public Output<ImmutableArray<ApplicationEnvironment>> Environments { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<ApplicationEnvironment>> |
Name
A human-readable name for the application.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RailsEnv
The name of the Rails environment for application of type rails.
Declaration
public Output<string> RailsEnv { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ShortName
A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
Declaration
public Output<string> ShortName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SslConfigurations
The SSL configuration of the app. Object is described below.
Declaration
public Output<ImmutableArray<ApplicationSslConfiguration>> SslConfigurations { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<ApplicationSslConfiguration>> |
StackId
The id of the stack the application will belong to.
Declaration
public Output<string> StackId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Type
Opsworks application type. One of aws-flow-ruby, java, rails, php, nodejs, static or other.
Declaration
public Output<string> Type { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ApplicationState, CustomResourceOptions)
Get an existing Application resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Application Get(string name, Input<string> id, ApplicationState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ApplicationState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Application |