Application Args
data class ApplicationArgs(val appSources: Output<List<ApplicationAppSourceArgs>>? = null, val autoBundleOnDeploy: Output<String>? = null, val awsFlowRubySettings: Output<String>? = null, val dataSourceArn: Output<String>? = null, val dataSourceDatabaseName: Output<String>? = null, val dataSourceType: Output<String>? = null, val description: Output<String>? = null, val documentRoot: Output<String>? = null, val domains: Output<List<String>>? = null, val enableSsl: Output<Boolean>? = null, val environments: Output<List<ApplicationEnvironmentArgs>>? = null, val name: Output<String>? = null, val railsEnv: Output<String>? = null, val shortName: Output<String>? = null, val sslConfigurations: Output<List<ApplicationSslConfigurationArgs>>? = null, val stackId: Output<String>? = null, val type: Output<String>? = null) : ConvertibleToJava<ApplicationArgs>
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());
}
}
Content copied to clipboard
Import
Opsworks Application can be imported using the id
, e.g.,
$ pulumi import aws:opsworks/application:Application test <id>
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(appSources: Output<List<ApplicationAppSourceArgs>>? = null, autoBundleOnDeploy: Output<String>? = null, awsFlowRubySettings: Output<String>? = null, dataSourceArn: Output<String>? = null, dataSourceDatabaseName: Output<String>? = null, dataSourceType: Output<String>? = null, description: Output<String>? = null, documentRoot: Output<String>? = null, domains: Output<List<String>>? = null, enableSsl: Output<Boolean>? = null, environments: Output<List<ApplicationEnvironmentArgs>>? = null, name: Output<String>? = null, railsEnv: Output<String>? = null, shortName: Output<String>? = null, sslConfigurations: Output<List<ApplicationSslConfigurationArgs>>? = null, stackId: Output<String>? = null, type: Output<String>? = null)
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
The data source's ARN.
Link copied to clipboard
The database name.
Link copied to clipboard
The data source's type one of AutoSelectOpsworksMysqlInstance
, OpsworksMysqlInstance
, or RdsDbInstance
.
Link copied to clipboard
A description of the app.
Link copied to clipboard
Subfolder for the document root for application of type rails
.
Link copied to clipboard
Object to define environment variables. Object is described below.
Link copied to clipboard
The SSL configuration of the app. Object is described below.