Application

class Application : KotlinCustomResource

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,
},
});
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,
})
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,
},
});
});
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
})
}
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());
}
}
resources:
tftest:
type: aws:elasticbeanstalk:Application
properties:
name: tf-test-name
description: tf-test-desc
appversionLifecycle:
serviceRole: ${beanstalkService.arn}
maxCount: 128
deleteSourceFromS3: true

Import

Using pulumi import, import Elastic Beanstalk Applications using the name. For example:

$ pulumi import aws:elasticbeanstalk/application:Application tf_test tf-test-name

Properties

Link copied to clipboard
val arn: Output<String>

The ARN assigned by AWS for this Elastic Beanstalk Application.

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

Short description of the application

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

The name of the application, must be unique within your account

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

Key-value map of tags for the Elastic Beanstalk Application. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>