Show / Hide Table of Contents

Class ApplicationVersion

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 <revision>-<environment>.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var defaultBucket = new Aws.S3.Bucket("defaultBucket", new Aws.S3.BucketArgs
    {
    });
    var defaultBucketObject = new Aws.S3.BucketObject("defaultBucketObject", new Aws.S3.BucketObjectArgs
    {
        Bucket = defaultBucket.Id,
        Key = "beanstalk/go-v1.zip",
        Source = new FileAsset("go-v1.zip"),
    });
    var defaultApplication = new Aws.ElasticBeanstalk.Application("defaultApplication", new Aws.ElasticBeanstalk.ApplicationArgs
    {
        Description = "tf-test-desc",
    });
    var defaultApplicationVersion = new Aws.ElasticBeanstalk.ApplicationVersion("defaultApplicationVersion", new Aws.ElasticBeanstalk.ApplicationVersionArgs
    {
        Application = "tf-test-name",
        Bucket = defaultBucket.Id,
        Description = "application version",
        Key = defaultBucketObject.Id,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
ApplicationVersion
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.ElasticBeanstalk
Assembly: Pulumi.Aws.dll
Syntax
public class ApplicationVersion : CustomResource

Constructors

View Source

ApplicationVersion(String, ApplicationVersionArgs, CustomResourceOptions)

Create a ApplicationVersion resource with the given unique name, arguments, and options.

Declaration
public ApplicationVersion(string name, ApplicationVersionArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ApplicationVersionArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Application

Name of the Beanstalk Application the version is associated with.

Declaration
public Output<string> Application { get; }
Property Value
Type Description
Output<System.String>
View Source

Arn

The ARN assigned by AWS for this Elastic Beanstalk Application.

Declaration
public Output<string> Arn { get; }
Property Value
Type Description
Output<System.String>
View Source

Bucket

S3 bucket that contains the Application Version source bundle.

Declaration
public Output<string> Bucket { get; }
Property Value
Type Description
Output<System.String>
View Source

Description

Short description of the Application Version.

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

ForceDelete

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

Declaration
public Output<bool?> ForceDelete { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

Key

S3 object that is the Application Version source bundle.

Declaration
public Output<string> Key { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

A unique name for the this Application Version.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Tags

Key-value map of tags for the Elastic Beanstalk Application Version.

Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>

Methods

View Source

Get(String, Input<String>, ApplicationVersionState, CustomResourceOptions)

Get an existing ApplicationVersion resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static ApplicationVersion Get(string name, Input<string> id, ApplicationVersionState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

ApplicationVersionState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
ApplicationVersion
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.