Application

class Application : KotlinCustomResource

Provides an OpsWorks application resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.opsworks.Application;
import com.pulumi.aws.opsworks.ApplicationArgs;
import com.pulumi.aws.opsworks.inputs.ApplicationEnvironmentArgs;
import com.pulumi.aws.opsworks.inputs.ApplicationAppSourceArgs;
import com.pulumi.aws.opsworks.inputs.ApplicationSslConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo_app = new Application("foo-app", ApplicationArgs.builder()
.shortName("foobar")
.stackId(aws_opsworks_stack.main().id())
.type("rails")
.description("This is a Rails application")
.domains(
"example.com",
"sub.example.com")
.environments(ApplicationEnvironmentArgs.builder()
.key("key")
.value("value")
.secure(false)
.build())
.appSources(ApplicationAppSourceArgs.builder()
.type("git")
.revision("master")
.url("https://github.com/example.git")
.build())
.enableSsl(true)
.sslConfigurations(ApplicationSslConfigurationArgs.builder()
.privateKey(Files.readString(Paths.get("./foobar.key")))
.certificate(Files.readString(Paths.get("./foobar.crt")))
.build())
.documentRoot("public")
.autoBundleOnDeploy(true)
.railsEnv("staging")
.build());
}
}

Import

Opsworks Application can be imported using the id, e.g.,

$ pulumi import aws:opsworks/application:Application test <id>

Properties

Link copied to clipboard

SCM configuration of the app as described below.

Link copied to clipboard

Run bundle install when deploying for application of type rails.

Link copied to clipboard

Specify activity and workflow workers for your app using the aws-flow gem.

Link copied to clipboard
val dataSourceArn: Output<String>?

The data source's ARN.

Link copied to clipboard

The database name.

Link copied to clipboard
val dataSourceType: Output<String>?

The data source's type one of AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance.

Link copied to clipboard
val description: Output<String>?

A description of the app.

Link copied to clipboard
val documentRoot: Output<String>?

Subfolder for the document root for application of type rails.

Link copied to clipboard
val domains: Output<List<String>>?

A list of virtual host alias.

Link copied to clipboard
val enableSsl: Output<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.

Link copied to clipboard

Object to define environment variables. Object is described below.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

A human-readable name for the application.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val railsEnv: Output<String>?

The name of the Rails environment for application of type rails.

Link copied to clipboard
val shortName: Output<String>

A short, machine-readable name for the application. This can only be defined on resource creation and ignored on resource update.

Link copied to clipboard

The SSL configuration of the app. Object is described below.

Link copied to clipboard
val stackId: Output<String>

ID of the stack the application will belong to.

Link copied to clipboard
val type: Output<String>

Opsworks application type. One of aws-flow-ruby, java, rails, php, nodejs, static or other.

Link copied to clipboard
val urn: Output<String>