ApplicationVersionArgs

data class ApplicationVersionArgs(val application: Output<String>? = null, val bucket: Output<String>? = null, val description: Output<String>? = null, val forceDelete: Output<Boolean>? = null, val key: Output<String>? = null, val name: Output<String>? = null, val process: Output<Boolean>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ApplicationVersionArgs>

Provides an Elastic Beanstalk Application Version 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 a Beanstalk Application Version that can be deployed to a Beanstalk Environment.

NOTE on Application Version Resource: When using the Application Version resource with multiple Elastic Beanstalk Environments it is possible that an error may be returned when attempting to delete an Application Version while it is still in use by a different environment. To work around this you can either create each environment in a separate AWS account or create your aws.elasticbeanstalk.ApplicationVersion resources with a unique names in your Elastic Beanstalk Application. For example -.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const _default = new aws.s3.BucketV2("default", {bucket: "tftest.applicationversion.bucket"});
const defaultBucketObjectv2 = new aws.s3.BucketObjectv2("default", {
bucket: _default.id,
key: "beanstalk/go-v1.zip",
source: new pulumi.asset.FileAsset("go-v1.zip"),
});
const defaultApplication = new aws.elasticbeanstalk.Application("default", {
name: "tf-test-name",
description: "tf-test-desc",
});
const defaultApplicationVersion = new aws.elasticbeanstalk.ApplicationVersion("default", {
name: "tf-test-version-label",
application: "tf-test-name",
description: "application version",
bucket: _default.id,
key: defaultBucketObjectv2.id,
});
import pulumi
import pulumi_aws as aws
default = aws.s3.BucketV2("default", bucket="tftest.applicationversion.bucket")
default_bucket_objectv2 = aws.s3.BucketObjectv2("default",
bucket=default.id,
key="beanstalk/go-v1.zip",
source=pulumi.FileAsset("go-v1.zip"))
default_application = aws.elasticbeanstalk.Application("default",
name="tf-test-name",
description="tf-test-desc")
default_application_version = aws.elasticbeanstalk.ApplicationVersion("default",
name="tf-test-version-label",
application="tf-test-name",
description="application version",
bucket=default.id,
key=default_bucket_objectv2.id)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var @default = new Aws.S3.BucketV2("default", new()
{
Bucket = "tftest.applicationversion.bucket",
});
var defaultBucketObjectv2 = new Aws.S3.BucketObjectv2("default", new()
{
Bucket = @default.Id,
Key = "beanstalk/go-v1.zip",
Source = new FileAsset("go-v1.zip"),
});
var defaultApplication = new Aws.ElasticBeanstalk.Application("default", new()
{
Name = "tf-test-name",
Description = "tf-test-desc",
});
var defaultApplicationVersion = new Aws.ElasticBeanstalk.ApplicationVersion("default", new()
{
Name = "tf-test-version-label",
Application = "tf-test-name",
Description = "application version",
Bucket = @default.Id,
Key = defaultBucketObjectv2.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/elasticbeanstalk"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/s3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := s3.NewBucketV2(ctx, "default", &s3.BucketV2Args{
Bucket: pulumi.String("tftest.applicationversion.bucket"),
})
if err != nil {
return err
}
defaultBucketObjectv2, err := s3.NewBucketObjectv2(ctx, "default", &s3.BucketObjectv2Args{
Bucket: _default.ID(),
Key: pulumi.String("beanstalk/go-v1.zip"),
Source: pulumi.NewFileAsset("go-v1.zip"),
})
if err != nil {
return err
}
_, err = elasticbeanstalk.NewApplication(ctx, "default", &elasticbeanstalk.ApplicationArgs{
Name: pulumi.String("tf-test-name"),
Description: pulumi.String("tf-test-desc"),
})
if err != nil {
return err
}
_, err = elasticbeanstalk.NewApplicationVersion(ctx, "default", &elasticbeanstalk.ApplicationVersionArgs{
Name: pulumi.String("tf-test-version-label"),
Application: pulumi.Any("tf-test-name"),
Description: pulumi.String("application version"),
Bucket: _default.ID(),
Key: defaultBucketObjectv2.ID(),
})
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.s3.BucketV2;
import com.pulumi.aws.s3.BucketV2Args;
import com.pulumi.aws.s3.BucketObjectv2;
import com.pulumi.aws.s3.BucketObjectv2Args;
import com.pulumi.aws.elasticbeanstalk.Application;
import com.pulumi.aws.elasticbeanstalk.ApplicationArgs;
import com.pulumi.aws.elasticbeanstalk.ApplicationVersion;
import com.pulumi.aws.elasticbeanstalk.ApplicationVersionArgs;
import com.pulumi.asset.FileAsset;
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 default_ = new BucketV2("default", BucketV2Args.builder()
.bucket("tftest.applicationversion.bucket")
.build());
var defaultBucketObjectv2 = new BucketObjectv2("defaultBucketObjectv2", BucketObjectv2Args.builder()
.bucket(default_.id())
.key("beanstalk/go-v1.zip")
.source(new FileAsset("go-v1.zip"))
.build());
var defaultApplication = new Application("defaultApplication", ApplicationArgs.builder()
.name("tf-test-name")
.description("tf-test-desc")
.build());
var defaultApplicationVersion = new ApplicationVersion("defaultApplicationVersion", ApplicationVersionArgs.builder()
.name("tf-test-version-label")
.application("tf-test-name")
.description("application version")
.bucket(default_.id())
.key(defaultBucketObjectv2.id())
.build());
}
}
resources:
default:
type: aws:s3:BucketV2
properties:
bucket: tftest.applicationversion.bucket
defaultBucketObjectv2:
type: aws:s3:BucketObjectv2
name: default
properties:
bucket: ${default.id}
key: beanstalk/go-v1.zip
source:
fn::FileAsset: go-v1.zip
defaultApplication:
type: aws:elasticbeanstalk:Application
name: default
properties:
name: tf-test-name
description: tf-test-desc
defaultApplicationVersion:
type: aws:elasticbeanstalk:ApplicationVersion
name: default
properties:
name: tf-test-version-label
application: tf-test-name
description: application version
bucket: ${default.id}
key: ${defaultBucketObjectv2.id}

Constructors

Link copied to clipboard
constructor(application: Output<String>? = null, bucket: Output<String>? = null, description: Output<String>? = null, forceDelete: Output<Boolean>? = null, key: Output<String>? = null, name: Output<String>? = null, process: Output<Boolean>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val application: Output<String>? = null

Name of the Beanstalk Application the version is associated with.

Link copied to clipboard
val bucket: Output<String>? = null

S3 bucket that contains the Application Version source bundle.

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

Short description of the Application Version.

Link copied to clipboard
val forceDelete: Output<Boolean>? = null

On delete, force an Application Version to be deleted when it may be in use by multiple Elastic Beanstalk Environments.

Link copied to clipboard
val key: Output<String>? = null

S3 object that is the Application Version source bundle.

Link copied to clipboard
val name: Output<String>? = null

Unique name for the this Application Version. The following arguments are optional:

Link copied to clipboard
val process: Output<Boolean>? = null

Pre-processes and validates the environment manifest (env.yaml ) and configuration files (*.config files in the .ebextensions folder) in the source bundle. Validating configuration files can identify issues prior to deploying the application version to an environment. You must turn processing on for application versions that you create using AWS CodeBuild or AWS CodeCommit. For application versions built from a source bundle in Amazon S3, processing is optional. It validates Elastic Beanstalk configuration files. It doesn’t validate your application’s configuration files, like proxy server or Docker configuration.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): ApplicationVersionArgs