1. Packages
  2. AWS
  3. API Docs
  4. opsworks
  5. Application
AWS v6.61.0 published on Tuesday, Nov 26, 2024 by Pulumi

aws.opsworks.Application

Explore with Pulumi AI

aws logo
AWS v6.61.0 published on Tuesday, Nov 26, 2024 by Pulumi

    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",
            "ssh_key": "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",
            "private_key": "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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Application resource accepts the following input properties:

    StackId 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 or other.
    AppSources List<ApplicationAppSource>
    SCM configuration of the app as described below.
    AutoBundleOnDeploy string
    Run bundle install when deploying for application of type rails.
    AwsFlowRubySettings string
    Specify activity and workflow workers for your app using the aws-flow gem.
    DataSourceArn string
    The data source's ARN.
    DataSourceDatabaseName string
    The database name.
    DataSourceType string
    The data source's type one of AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance.
    Description string
    A description of the app.
    DocumentRoot string
    Subfolder for the document root for application of type rails.
    Domains List<string>
    A list of virtual host alias.
    EnableSsl bool
    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.
    Environments List<ApplicationEnvironment>
    Object to define environment variables. Object is described below.
    Name string
    A human-readable name for the application.
    RailsEnv string
    The name of the Rails environment for application of type rails.
    ShortName string
    A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
    SslConfigurations List<ApplicationSslConfiguration>
    The SSL configuration of the app. Object is described below.
    StackId 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 or other.
    AppSources []ApplicationAppSourceArgs
    SCM configuration of the app as described below.
    AutoBundleOnDeploy string
    Run bundle install when deploying for application of type rails.
    AwsFlowRubySettings string
    Specify activity and workflow workers for your app using the aws-flow gem.
    DataSourceArn string
    The data source's ARN.
    DataSourceDatabaseName string
    The database name.
    DataSourceType string
    The data source's type one of AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance.
    Description string
    A description of the app.
    DocumentRoot string
    Subfolder for the document root for application of type rails.
    Domains []string
    A list of virtual host alias.
    EnableSsl bool
    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.
    Environments []ApplicationEnvironmentArgs
    Object to define environment variables. Object is described below.
    Name string
    A human-readable name for the application.
    RailsEnv string
    The name of the Rails environment for application of type rails.
    ShortName string
    A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
    SslConfigurations []ApplicationSslConfigurationArgs
    The SSL configuration of the app. Object is described below.
    stackId 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 or other.
    appSources List<ApplicationAppSource>
    SCM configuration of the app as described below.
    autoBundleOnDeploy String
    Run bundle install when deploying for application of type rails.
    awsFlowRubySettings String
    Specify activity and workflow workers for your app using the aws-flow gem.
    dataSourceArn String
    The data source's ARN.
    dataSourceDatabaseName String
    The database name.
    dataSourceType String
    The data source's type one of AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance.
    description String
    A description of the app.
    documentRoot String
    Subfolder for the document root for application of type rails.
    domains List<String>
    A list of virtual host alias.
    enableSsl Boolean
    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.
    environments List<ApplicationEnvironment>
    Object to define environment variables. Object is described below.
    name String
    A human-readable name for the application.
    railsEnv String
    The name of the Rails environment for application of type rails.
    shortName String
    A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
    sslConfigurations List<ApplicationSslConfiguration>
    The SSL configuration of the app. Object is described below.
    stackId 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 or other.
    appSources ApplicationAppSource[]
    SCM configuration of the app as described below.
    autoBundleOnDeploy string
    Run bundle install when deploying for application of type rails.
    awsFlowRubySettings string
    Specify activity and workflow workers for your app using the aws-flow gem.
    dataSourceArn string
    The data source's ARN.
    dataSourceDatabaseName string
    The database name.
    dataSourceType string
    The data source's type one of AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance.
    description string
    A description of the app.
    documentRoot string
    Subfolder for the document root for application of type rails.
    domains string[]
    A list of virtual host alias.
    enableSsl boolean
    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.
    environments ApplicationEnvironment[]
    Object to define environment variables. Object is described below.
    name string
    A human-readable name for the application.
    railsEnv string
    The name of the Rails environment for application of type rails.
    shortName string
    A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
    sslConfigurations ApplicationSslConfiguration[]
    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 or other.
    app_sources Sequence[ApplicationAppSourceArgs]
    SCM configuration of the app as described below.
    auto_bundle_on_deploy str
    Run bundle install when deploying for application of type rails.
    aws_flow_ruby_settings str
    Specify activity and workflow workers for your app using the aws-flow gem.
    data_source_arn str
    The data source's ARN.
    data_source_database_name str
    The database name.
    data_source_type str
    The data source's type one of AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance.
    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 and ssl_configuration.chain take effect.
    environments Sequence[ApplicationEnvironmentArgs]
    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[ApplicationSslConfigurationArgs]
    The SSL configuration of the app. Object is described below.
    stackId 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 or other.
    appSources List<Property Map>
    SCM configuration of the app as described below.
    autoBundleOnDeploy String
    Run bundle install when deploying for application of type rails.
    awsFlowRubySettings String
    Specify activity and workflow workers for your app using the aws-flow gem.
    dataSourceArn String
    The data source's ARN.
    dataSourceDatabaseName String
    The database name.
    dataSourceType String
    The data source's type one of AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance.
    description String
    A description of the app.
    documentRoot String
    Subfolder for the document root for application of type rails.
    domains List<String>
    A list of virtual host alias.
    enableSsl Boolean
    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.
    environments List<Property Map>
    Object to define environment variables. Object is described below.
    name String
    A human-readable name for the application.
    railsEnv String
    The name of the Rails environment for application of type rails.
    shortName String
    A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
    sslConfigurations 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.
    The following state arguments are supported:
    AppSources List<ApplicationAppSource>
    SCM configuration of the app as described below.
    AutoBundleOnDeploy string
    Run bundle install when deploying for application of type rails.
    AwsFlowRubySettings string
    Specify activity and workflow workers for your app using the aws-flow gem.
    DataSourceArn string
    The data source's ARN.
    DataSourceDatabaseName string
    The database name.
    DataSourceType string
    The data source's type one of AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance.
    Description string
    A description of the app.
    DocumentRoot string
    Subfolder for the document root for application of type rails.
    Domains List<string>
    A list of virtual host alias.
    EnableSsl bool
    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.
    Environments List<ApplicationEnvironment>
    Object to define environment variables. Object is described below.
    Name string
    A human-readable name for the application.
    RailsEnv string
    The name of the Rails environment for application of type rails.
    ShortName string
    A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
    SslConfigurations List<ApplicationSslConfiguration>
    The SSL configuration of the app. Object is described below.
    StackId 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 or other.
    AppSources []ApplicationAppSourceArgs
    SCM configuration of the app as described below.
    AutoBundleOnDeploy string
    Run bundle install when deploying for application of type rails.
    AwsFlowRubySettings string
    Specify activity and workflow workers for your app using the aws-flow gem.
    DataSourceArn string
    The data source's ARN.
    DataSourceDatabaseName string
    The database name.
    DataSourceType string
    The data source's type one of AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance.
    Description string
    A description of the app.
    DocumentRoot string
    Subfolder for the document root for application of type rails.
    Domains []string
    A list of virtual host alias.
    EnableSsl bool
    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.
    Environments []ApplicationEnvironmentArgs
    Object to define environment variables. Object is described below.
    Name string
    A human-readable name for the application.
    RailsEnv string
    The name of the Rails environment for application of type rails.
    ShortName string
    A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
    SslConfigurations []ApplicationSslConfigurationArgs
    The SSL configuration of the app. Object is described below.
    StackId 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 or other.
    appSources List<ApplicationAppSource>
    SCM configuration of the app as described below.
    autoBundleOnDeploy String
    Run bundle install when deploying for application of type rails.
    awsFlowRubySettings String
    Specify activity and workflow workers for your app using the aws-flow gem.
    dataSourceArn String
    The data source's ARN.
    dataSourceDatabaseName String
    The database name.
    dataSourceType String
    The data source's type one of AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance.
    description String
    A description of the app.
    documentRoot String
    Subfolder for the document root for application of type rails.
    domains List<String>
    A list of virtual host alias.
    enableSsl Boolean
    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.
    environments List<ApplicationEnvironment>
    Object to define environment variables. Object is described below.
    name String
    A human-readable name for the application.
    railsEnv String
    The name of the Rails environment for application of type rails.
    shortName String
    A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
    sslConfigurations List<ApplicationSslConfiguration>
    The SSL configuration of the app. Object is described below.
    stackId 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 or other.
    appSources ApplicationAppSource[]
    SCM configuration of the app as described below.
    autoBundleOnDeploy string
    Run bundle install when deploying for application of type rails.
    awsFlowRubySettings string
    Specify activity and workflow workers for your app using the aws-flow gem.
    dataSourceArn string
    The data source's ARN.
    dataSourceDatabaseName string
    The database name.
    dataSourceType string
    The data source's type one of AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance.
    description string
    A description of the app.
    documentRoot string
    Subfolder for the document root for application of type rails.
    domains string[]
    A list of virtual host alias.
    enableSsl boolean
    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.
    environments ApplicationEnvironment[]
    Object to define environment variables. Object is described below.
    name string
    A human-readable name for the application.
    railsEnv string
    The name of the Rails environment for application of type rails.
    shortName string
    A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
    sslConfigurations ApplicationSslConfiguration[]
    The SSL configuration of the app. Object is described below.
    stackId 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 or other.
    app_sources Sequence[ApplicationAppSourceArgs]
    SCM configuration of the app as described below.
    auto_bundle_on_deploy str
    Run bundle install when deploying for application of type rails.
    aws_flow_ruby_settings str
    Specify activity and workflow workers for your app using the aws-flow gem.
    data_source_arn str
    The data source's ARN.
    data_source_database_name str
    The database name.
    data_source_type str
    The data source's type one of AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance.
    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 and ssl_configuration.chain take effect.
    environments Sequence[ApplicationEnvironmentArgs]
    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[ApplicationSslConfigurationArgs]
    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 or other.
    appSources List<Property Map>
    SCM configuration of the app as described below.
    autoBundleOnDeploy String
    Run bundle install when deploying for application of type rails.
    awsFlowRubySettings String
    Specify activity and workflow workers for your app using the aws-flow gem.
    dataSourceArn String
    The data source's ARN.
    dataSourceDatabaseName String
    The database name.
    dataSourceType String
    The data source's type one of AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance.
    description String
    A description of the app.
    documentRoot String
    Subfolder for the document root for application of type rails.
    domains List<String>
    A list of virtual host alias.
    enableSsl Boolean
    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.
    environments List<Property Map>
    Object to define environment variables. Object is described below.
    name String
    A human-readable name for the application.
    railsEnv String
    The name of the Rails environment for application of type rails.
    shortName String
    A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.
    sslConfigurations List<Property Map>
    The SSL configuration of the app. Object is described below.
    stackId 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 or other.

    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.
    SshKey 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.
    SshKey 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.
    sshKey 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.
    sshKey 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.
    sshKey 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

    Key string
    Variable name.
    Value string
    Variable value.
    Secure bool
    Set visibility of the variable value to true or false.
    Key string
    Variable name.
    Value string
    Variable value.
    Secure bool
    Set visibility of the variable value to true or false.
    key String
    Variable name.
    value String
    Variable value.
    secure Boolean
    Set visibility of the variable value to true or false.
    key string
    Variable name.
    value string
    Variable value.
    secure boolean
    Set visibility of the variable value to true or false.
    key str
    Variable name.
    value str
    Variable value.
    secure bool
    Set visibility of the variable value to true or false.
    key String
    Variable name.
    value String
    Variable value.
    secure Boolean
    Set visibility of the variable value to true or false.

    ApplicationSslConfiguration, ApplicationSslConfigurationArgs

    Certificate string
    The contents of the certificate's domain.crt file.
    PrivateKey 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.
    PrivateKey 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.
    privateKey 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.
    privateKey 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.
    privateKey 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.
    aws logo
    AWS v6.61.0 published on Tuesday, Nov 26, 2024 by Pulumi