aws.opsworks.Application
Explore with Pulumi AI
Provides an OpsWorks application resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as std from "@pulumi/std";
const foo_app = new aws.opsworks.Application("foo-app", {
name: "foobar application",
shortName: "foobar",
stackId: 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: std.file({
input: "./foobar.key",
}).then(invoke => invoke.result),
certificate: std.file({
input: "./foobar.crt",
}).then(invoke => invoke.result),
}],
documentRoot: "public",
autoBundleOnDeploy: "true",
railsEnv: "staging",
});
import pulumi
import pulumi_aws as aws
import pulumi_std as std
foo_app = aws.opsworks.Application("foo-app",
name="foobar application",
short_name="foobar",
stack_id=main["id"],
type="rails",
description="This is a Rails application",
domains=[
"example.com",
"sub.example.com",
],
environments=[{
"key": "key",
"value": "value",
"secure": False,
}],
app_sources=[{
"type": "git",
"revision": "master",
"url": "https://github.com/example.git",
}],
enable_ssl=True,
ssl_configurations=[{
"private_key": std.file(input="./foobar.key").result,
"certificate": std.file(input="./foobar.crt").result,
}],
document_root="public",
auto_bundle_on_deploy="true",
rails_env="staging")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opsworks"
"github.com/pulumi/pulumi-std/sdk/go/std"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
invokeFile, err := std.File(ctx, &std.FileArgs{
Input: "./foobar.key",
}, nil)
if err != nil {
return err
}
invokeFile1, err := std.File(ctx, &std.FileArgs{
Input: "./foobar.crt",
}, nil)
if err != nil {
return err
}
_, err = opsworks.NewApplication(ctx, "foo-app", &opsworks.ApplicationArgs{
Name: pulumi.String("foobar application"),
ShortName: pulumi.String("foobar"),
StackId: pulumi.Any(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: pulumi.String(invokeFile.Result),
Certificate: pulumi.String(invokeFile1.Result),
},
},
DocumentRoot: pulumi.String("public"),
AutoBundleOnDeploy: pulumi.String("true"),
RailsEnv: pulumi.String("staging"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
using Std = Pulumi.Std;
return await Deployment.RunAsync(() =>
{
var foo_app = new Aws.OpsWorks.Application("foo-app", new()
{
Name = "foobar application",
ShortName = "foobar",
StackId = 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 = Std.File.Invoke(new()
{
Input = "./foobar.key",
}).Apply(invoke => invoke.Result),
Certificate = Std.File.Invoke(new()
{
Input = "./foobar.crt",
}).Apply(invoke => invoke.Result),
},
},
DocumentRoot = "public",
AutoBundleOnDeploy = "true",
RailsEnv = "staging",
});
});
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()
.name("foobar application")
.shortName("foobar")
.stackId(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(StdFunctions.file(FileArgs.builder()
.input("./foobar.key")
.build()).result())
.certificate(StdFunctions.file(FileArgs.builder()
.input("./foobar.crt")
.build()).result())
.build())
.documentRoot("public")
.autoBundleOnDeploy(true)
.railsEnv("staging")
.build());
}
}
resources:
foo-app:
type: aws:opsworks:Application
properties:
name: foobar application
shortName: foobar
stackId: ${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::invoke:
Function: std:file
Arguments:
input: ./foobar.key
Return: result
certificate:
fn::invoke:
Function: std:file
Arguments:
input: ./foobar.crt
Return: result
documentRoot: public
autoBundleOnDeploy: true
railsEnv: staging
Create Application Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Application(name: string, args: ApplicationArgs, opts?: CustomResourceOptions);
@overload
def Application(resource_name: str,
args: ApplicationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Application(resource_name: str,
opts: Optional[ResourceOptions] = None,
stack_id: Optional[str] = None,
type: Optional[str] = None,
domains: Optional[Sequence[str]] = None,
enable_ssl: Optional[bool] = None,
data_source_database_name: Optional[str] = None,
data_source_type: Optional[str] = None,
description: Optional[str] = None,
document_root: Optional[str] = None,
app_sources: Optional[Sequence[ApplicationAppSourceArgs]] = None,
data_source_arn: Optional[str] = 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,
aws_flow_ruby_settings: Optional[str] = None,
auto_bundle_on_deploy: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleapplicationResourceResourceFromOpsworksapplication = new Aws.OpsWorks.Application("exampleapplicationResourceResourceFromOpsworksapplication", new()
{
StackId = "string",
Type = "string",
Domains = new[]
{
"string",
},
EnableSsl = false,
DataSourceDatabaseName = "string",
DataSourceType = "string",
Description = "string",
DocumentRoot = "string",
AppSources = new[]
{
new Aws.OpsWorks.Inputs.ApplicationAppSourceArgs
{
Type = "string",
Password = "string",
Revision = "string",
SshKey = "string",
Url = "string",
Username = "string",
},
},
DataSourceArn = "string",
Environments = new[]
{
new Aws.OpsWorks.Inputs.ApplicationEnvironmentArgs
{
Key = "string",
Value = "string",
Secure = false,
},
},
Name = "string",
RailsEnv = "string",
ShortName = "string",
SslConfigurations = new[]
{
new Aws.OpsWorks.Inputs.ApplicationSslConfigurationArgs
{
Certificate = "string",
PrivateKey = "string",
Chain = "string",
},
},
AwsFlowRubySettings = "string",
AutoBundleOnDeploy = "string",
});
example, err := opsworks.NewApplication(ctx, "exampleapplicationResourceResourceFromOpsworksapplication", &opsworks.ApplicationArgs{
StackId: pulumi.String("string"),
Type: pulumi.String("string"),
Domains: pulumi.StringArray{
pulumi.String("string"),
},
EnableSsl: pulumi.Bool(false),
DataSourceDatabaseName: pulumi.String("string"),
DataSourceType: pulumi.String("string"),
Description: pulumi.String("string"),
DocumentRoot: pulumi.String("string"),
AppSources: opsworks.ApplicationAppSourceArray{
&opsworks.ApplicationAppSourceArgs{
Type: pulumi.String("string"),
Password: pulumi.String("string"),
Revision: pulumi.String("string"),
SshKey: pulumi.String("string"),
Url: pulumi.String("string"),
Username: pulumi.String("string"),
},
},
DataSourceArn: pulumi.String("string"),
Environments: opsworks.ApplicationEnvironmentArray{
&opsworks.ApplicationEnvironmentArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
Secure: pulumi.Bool(false),
},
},
Name: pulumi.String("string"),
RailsEnv: pulumi.String("string"),
ShortName: pulumi.String("string"),
SslConfigurations: opsworks.ApplicationSslConfigurationArray{
&opsworks.ApplicationSslConfigurationArgs{
Certificate: pulumi.String("string"),
PrivateKey: pulumi.String("string"),
Chain: pulumi.String("string"),
},
},
AwsFlowRubySettings: pulumi.String("string"),
AutoBundleOnDeploy: pulumi.String("string"),
})
var exampleapplicationResourceResourceFromOpsworksapplication = new Application("exampleapplicationResourceResourceFromOpsworksapplication", ApplicationArgs.builder()
.stackId("string")
.type("string")
.domains("string")
.enableSsl(false)
.dataSourceDatabaseName("string")
.dataSourceType("string")
.description("string")
.documentRoot("string")
.appSources(ApplicationAppSourceArgs.builder()
.type("string")
.password("string")
.revision("string")
.sshKey("string")
.url("string")
.username("string")
.build())
.dataSourceArn("string")
.environments(ApplicationEnvironmentArgs.builder()
.key("string")
.value("string")
.secure(false)
.build())
.name("string")
.railsEnv("string")
.shortName("string")
.sslConfigurations(ApplicationSslConfigurationArgs.builder()
.certificate("string")
.privateKey("string")
.chain("string")
.build())
.awsFlowRubySettings("string")
.autoBundleOnDeploy("string")
.build());
exampleapplication_resource_resource_from_opsworksapplication = aws.opsworks.Application("exampleapplicationResourceResourceFromOpsworksapplication",
stack_id="string",
type="string",
domains=["string"],
enable_ssl=False,
data_source_database_name="string",
data_source_type="string",
description="string",
document_root="string",
app_sources=[{
"type": "string",
"password": "string",
"revision": "string",
"sshKey": "string",
"url": "string",
"username": "string",
}],
data_source_arn="string",
environments=[{
"key": "string",
"value": "string",
"secure": False,
}],
name="string",
rails_env="string",
short_name="string",
ssl_configurations=[{
"certificate": "string",
"privateKey": "string",
"chain": "string",
}],
aws_flow_ruby_settings="string",
auto_bundle_on_deploy="string")
const exampleapplicationResourceResourceFromOpsworksapplication = new aws.opsworks.Application("exampleapplicationResourceResourceFromOpsworksapplication", {
stackId: "string",
type: "string",
domains: ["string"],
enableSsl: false,
dataSourceDatabaseName: "string",
dataSourceType: "string",
description: "string",
documentRoot: "string",
appSources: [{
type: "string",
password: "string",
revision: "string",
sshKey: "string",
url: "string",
username: "string",
}],
dataSourceArn: "string",
environments: [{
key: "string",
value: "string",
secure: false,
}],
name: "string",
railsEnv: "string",
shortName: "string",
sslConfigurations: [{
certificate: "string",
privateKey: "string",
chain: "string",
}],
awsFlowRubySettings: "string",
autoBundleOnDeploy: "string",
});
type: aws:opsworks:Application
properties:
appSources:
- password: string
revision: string
sshKey: string
type: string
url: string
username: string
autoBundleOnDeploy: string
awsFlowRubySettings: string
dataSourceArn: string
dataSourceDatabaseName: string
dataSourceType: string
description: string
documentRoot: string
domains:
- string
enableSsl: false
environments:
- key: string
secure: false
value: string
name: string
railsEnv: string
shortName: string
sslConfigurations:
- certificate: string
chain: string
privateKey: string
stackId: string
type: string
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>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.