Application

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

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var tftest = new Aws.ElasticBeanstalk.Application("tftest", new Aws.ElasticBeanstalk.ApplicationArgs
        {
            AppversionLifecycle = new Aws.ElasticBeanstalk.Inputs.ApplicationAppversionLifecycleArgs
            {
                DeleteSourceFromS3 = true,
                MaxCount = 128,
                ServiceRole = aws_iam_role.Beanstalk_service.Arn,
            },
            Description = "tf-test-desc",
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/elasticbeanstalk"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := elasticbeanstalk.NewApplication(ctx, "tftest", &elasticbeanstalk.ApplicationArgs{
            AppversionLifecycle: &elasticbeanstalk.ApplicationAppversionLifecycleArgs{
                DeleteSourceFromS3: pulumi.Bool(true),
                MaxCount:           pulumi.Int(128),
                ServiceRole:        pulumi.String(aws_iam_role.Beanstalk_service.Arn),
            },
            Description: pulumi.String("tf-test-desc"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

tftest = aws.elasticbeanstalk.Application("tftest",
    appversion_lifecycle={
        "deleteSourceFromS3": True,
        "maxCount": 128,
        "service_role": aws_iam_role["beanstalk_service"]["arn"],
    },
    description="tf-test-desc")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const tftest = new aws.elasticbeanstalk.Application("tftest", {
    appversionLifecycle: {
        deleteSourceFromS3: true,
        maxCount: 128,
        serviceRole: aws_iam_role_beanstalk_service.arn,
    },
    description: "tf-test-desc",
});

Create a Application Resource

def Application(resource_name, opts=None, appversion_lifecycle=None, description=None, name=None, tags=None, __props__=None);
func NewApplication(ctx *Context, name string, args *ApplicationArgs, opts ...ResourceOption) (*Application, error)
public Application(string name, ApplicationArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ApplicationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ApplicationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ApplicationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Application Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Application resource accepts the following input properties:

AppversionLifecycle ApplicationAppversionLifecycleArgs
Description string

Short description of the application

Name string

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

Tags Dictionary<string, string>

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

AppversionLifecycle ApplicationAppversionLifecycle
Description string

Short description of the application

Name string

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

Tags map[string]string

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

appversionLifecycle ApplicationAppversionLifecycle
description string

Short description of the application

name string

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

tags {[key: string]: string}

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

appversion_lifecycle Dict[ApplicationAppversionLifecycle]
description str

Short description of the application

name str

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

tags Dict[str, str]

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

Outputs

All input properties are implicitly available as output properties. Additionally, the Application resource produces the following output properties:

Arn string

The ARN assigned by AWS for this Elastic Beanstalk Application.

Id string
The provider-assigned unique ID for this managed resource.
Arn string

The ARN assigned by AWS for this Elastic Beanstalk Application.

Id string
The provider-assigned unique ID for this managed resource.
arn string

The ARN assigned by AWS for this Elastic Beanstalk Application.

id string
The provider-assigned unique ID for this managed resource.
arn str

The ARN assigned by AWS for this Elastic Beanstalk Application.

id str
The provider-assigned unique ID for this managed resource.

Look up an Existing Application Resource

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

public static get(name: string, id: Input<ID>, state?: ApplicationState, opts?: CustomResourceOptions): Application
static get(resource_name, id, opts=None, appversion_lifecycle=None, arn=None, description=None, name=None, tags=None, __props__=None);
func GetApplication(ctx *Context, name string, id IDInput, state *ApplicationState, opts ...ResourceOption) (*Application, error)
public static Application Get(string name, Input<string> id, ApplicationState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

AppversionLifecycle ApplicationAppversionLifecycleArgs
Arn string

The ARN assigned by AWS for this Elastic Beanstalk Application.

Description string

Short description of the application

Name string

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

Tags Dictionary<string, string>

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

AppversionLifecycle ApplicationAppversionLifecycle
Arn string

The ARN assigned by AWS for this Elastic Beanstalk Application.

Description string

Short description of the application

Name string

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

Tags map[string]string

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

appversionLifecycle ApplicationAppversionLifecycle
arn string

The ARN assigned by AWS for this Elastic Beanstalk Application.

description string

Short description of the application

name string

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

tags {[key: string]: string}

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

appversion_lifecycle Dict[ApplicationAppversionLifecycle]
arn str

The ARN assigned by AWS for this Elastic Beanstalk Application.

description str

Short description of the application

name str

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

tags Dict[str, str]

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

Supporting Types

ApplicationAppversionLifecycle

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

ServiceRole string

The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.

DeleteSourceFromS3 bool

Set to true to delete a version’s source bundle from S3 when the application version is deleted.

MaxAgeInDays int

The number of days to retain an application version (‘max_age_in_days’ and ‘max_count’ cannot be enabled simultaneously.).

MaxCount int

The maximum number of application versions to retain (‘max_age_in_days’ and ‘max_count’ cannot be enabled simultaneously.).

ServiceRole string

The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.

DeleteSourceFromS3 bool

Set to true to delete a version’s source bundle from S3 when the application version is deleted.

MaxAgeInDays int

The number of days to retain an application version (‘max_age_in_days’ and ‘max_count’ cannot be enabled simultaneously.).

MaxCount int

The maximum number of application versions to retain (‘max_age_in_days’ and ‘max_count’ cannot be enabled simultaneously.).

serviceRole string

The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.

deleteSourceFromS3 boolean

Set to true to delete a version’s source bundle from S3 when the application version is deleted.

maxAgeInDays number

The number of days to retain an application version (‘max_age_in_days’ and ‘max_count’ cannot be enabled simultaneously.).

maxCount number

The maximum number of application versions to retain (‘max_age_in_days’ and ‘max_count’ cannot be enabled simultaneously.).

service_role str

The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.

deleteSourceFromS3 bool

Set to true to delete a version’s source bundle from S3 when the application version is deleted.

maxAgeInDays float

The number of days to retain an application version (‘max_age_in_days’ and ‘max_count’ cannot be enabled simultaneously.).

maxCount float

The maximum number of application versions to retain (‘max_age_in_days’ and ‘max_count’ cannot be enabled simultaneously.).

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.