Application
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
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The SSL configuration of the app. Object is described below.