ApplicationVersion

class ApplicationVersion : KotlinCustomResource

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

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.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 defaultBucketV2 = new BucketV2("defaultBucketV2");
var defaultBucketObjectv2 = new BucketObjectv2("defaultBucketObjectv2", BucketObjectv2Args.builder()
.bucket(defaultBucketV2.id())
.key("beanstalk/go-v1.zip")
.source(new FileAsset("go-v1.zip"))
.build());
var defaultApplication = new Application("defaultApplication", ApplicationArgs.builder()
.description("tf-test-desc")
.build());
var defaultApplicationVersion = new ApplicationVersion("defaultApplicationVersion", ApplicationVersionArgs.builder()
.application("tf-test-name")
.description("application version")
.bucket(defaultBucketV2.id())
.key(defaultBucketObjectv2.id())
.build());
}
}

Properties

Link copied to clipboard
val application: Output<String>

Name of the Beanstalk Application the version is associated with.

Link copied to clipboard
val arn: Output<String>

ARN assigned by AWS for this Elastic Beanstalk Application.

Link copied to clipboard
val bucket: Output<String>

S3 bucket that contains the Application Version source bundle.

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

Short description of the Application Version.

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

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 id: Output<String>
Link copied to clipboard
val key: Output<String>

S3 object that is the Application Version source bundle.

Link copied to clipboard
val name: Output<String>

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

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 Version. 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>>

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>