Application Args
data class ApplicationArgs(val appversionLifecycle: Output<ApplicationAppversionLifecycleArgs>? = null, val description: Output<String>? = null, val name: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ApplicationArgs>
Provides an Elastic Beanstalk Application Resource. Elastic Beanstalk allows you to deploy and manage applications in the AWS cloud without worrying about the infrastructure that runs those applications. This resource creates an application that has one configuration template named default
, and no application versions
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const tftest = new aws.elasticbeanstalk.Application("tftest", {
name: "tf-test-name",
description: "tf-test-desc",
appversionLifecycle: {
serviceRole: beanstalkService.arn,
maxCount: 128,
deleteSourceFromS3: true,
},
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
tftest = aws.elasticbeanstalk.Application("tftest",
name="tf-test-name",
description="tf-test-desc",
appversion_lifecycle={
"service_role": beanstalk_service["arn"],
"max_count": 128,
"delete_source_from_s3": True,
})
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var tftest = new Aws.ElasticBeanstalk.Application("tftest", new()
{
Name = "tf-test-name",
Description = "tf-test-desc",
AppversionLifecycle = new Aws.ElasticBeanstalk.Inputs.ApplicationAppversionLifecycleArgs
{
ServiceRole = beanstalkService.Arn,
MaxCount = 128,
DeleteSourceFromS3 = true,
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/elasticbeanstalk"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := elasticbeanstalk.NewApplication(ctx, "tftest", &elasticbeanstalk.ApplicationArgs{
Name: pulumi.String("tf-test-name"),
Description: pulumi.String("tf-test-desc"),
AppversionLifecycle: &elasticbeanstalk.ApplicationAppversionLifecycleArgs{
ServiceRole: pulumi.Any(beanstalkService.Arn),
MaxCount: pulumi.Int(128),
DeleteSourceFromS3: pulumi.Bool(true),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.elasticbeanstalk.Application;
import com.pulumi.aws.elasticbeanstalk.ApplicationArgs;
import com.pulumi.aws.elasticbeanstalk.inputs.ApplicationAppversionLifecycleArgs;
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 tftest = new Application("tftest", ApplicationArgs.builder()
.name("tf-test-name")
.description("tf-test-desc")
.appversionLifecycle(ApplicationAppversionLifecycleArgs.builder()
.serviceRole(beanstalkService.arn())
.maxCount(128)
.deleteSourceFromS3(true)
.build())
.build());
}
}
Content copied to clipboard
resources:
tftest:
type: aws:elasticbeanstalk:Application
properties:
name: tf-test-name
description: tf-test-desc
appversionLifecycle:
serviceRole: ${beanstalkService.arn}
maxCount: 128
deleteSourceFromS3: true
Content copied to clipboard
Import
Using pulumi import
, import Elastic Beanstalk Applications using the name
. For example:
$ pulumi import aws:elasticbeanstalk/application:Application tf_test tf-test-name
Content copied to clipboard