aws.elasticbeanstalk.Application
Explore with Pulumi AI
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,
})
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
})
}
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 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
Create Application Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Application(name: string, args?: ApplicationArgs, opts?: CustomResourceOptions);
@overload
def Application(resource_name: str,
args: Optional[ApplicationArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Application(resource_name: str,
opts: Optional[ResourceOptions] = None,
appversion_lifecycle: Optional[ApplicationAppversionLifecycleArgs] = None,
description: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewApplication(ctx *Context, name string, args *ApplicationArgs, opts ...ResourceOption) (*Application, error)
public Application(string name, ApplicationArgs? args = null, CustomResourceOptions? opts = null)
public Application(String name, ApplicationArgs args)
public Application(String name, ApplicationArgs args, CustomResourceOptions options)
type: aws:elasticbeanstalk:Application
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- args ApplicationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control 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.
- name String
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleapplicationResourceResourceFromElasticbeanstalkapplication = new Aws.ElasticBeanstalk.Application("exampleapplicationResourceResourceFromElasticbeanstalkapplication", new()
{
AppversionLifecycle = new Aws.ElasticBeanstalk.Inputs.ApplicationAppversionLifecycleArgs
{
ServiceRole = "string",
DeleteSourceFromS3 = false,
MaxAgeInDays = 0,
MaxCount = 0,
},
Description = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := elasticbeanstalk.NewApplication(ctx, "exampleapplicationResourceResourceFromElasticbeanstalkapplication", &elasticbeanstalk.ApplicationArgs{
AppversionLifecycle: &elasticbeanstalk.ApplicationAppversionLifecycleArgs{
ServiceRole: pulumi.String("string"),
DeleteSourceFromS3: pulumi.Bool(false),
MaxAgeInDays: pulumi.Int(0),
MaxCount: pulumi.Int(0),
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var exampleapplicationResourceResourceFromElasticbeanstalkapplication = new Application("exampleapplicationResourceResourceFromElasticbeanstalkapplication", ApplicationArgs.builder()
.appversionLifecycle(ApplicationAppversionLifecycleArgs.builder()
.serviceRole("string")
.deleteSourceFromS3(false)
.maxAgeInDays(0)
.maxCount(0)
.build())
.description("string")
.name("string")
.tags(Map.of("string", "string"))
.build());
exampleapplication_resource_resource_from_elasticbeanstalkapplication = aws.elasticbeanstalk.Application("exampleapplicationResourceResourceFromElasticbeanstalkapplication",
appversion_lifecycle={
"serviceRole": "string",
"deleteSourceFromS3": False,
"maxAgeInDays": 0,
"maxCount": 0,
},
description="string",
name="string",
tags={
"string": "string",
})
const exampleapplicationResourceResourceFromElasticbeanstalkapplication = new aws.elasticbeanstalk.Application("exampleapplicationResourceResourceFromElasticbeanstalkapplication", {
appversionLifecycle: {
serviceRole: "string",
deleteSourceFromS3: false,
maxAgeInDays: 0,
maxCount: 0,
},
description: "string",
name: "string",
tags: {
string: "string",
},
});
type: aws:elasticbeanstalk:Application
properties:
appversionLifecycle:
deleteSourceFromS3: false
maxAgeInDays: 0
maxCount: 0
serviceRole: string
description: string
name: string
tags:
string: string
Application Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Application resource accepts the following input properties:
- Appversion
Lifecycle ApplicationAppversion Lifecycle - Description string
- Short description of the application
- Name string
- The name of the application, must be unique within your account
- Dictionary<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.
- Appversion
Lifecycle ApplicationAppversion Lifecycle Args - Description string
- Short description of the application
- Name string
- The name of the application, must be unique within your account
- 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.
- appversion
Lifecycle ApplicationAppversion Lifecycle - description String
- Short description of the application
- name String
- The name of the application, must be unique within your account
- 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.
- appversion
Lifecycle ApplicationAppversion Lifecycle - description string
- Short description of the application
- name string
- The name of the application, must be unique within your account
- {[key: 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.
- appversion_
lifecycle ApplicationAppversion Lifecycle Args - description str
- Short description of the application
- name str
- The name of the application, must be unique within your account
- Mapping[str, str]
- 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.
- appversion
Lifecycle Property Map - description String
- Short description of the application
- name String
- The name of the application, must be unique within your account
- Map<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.
Outputs
All input properties are implicitly available as output properties. Additionally, the Application resource produces the following output properties:
Look up 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
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
appversion_lifecycle: Optional[ApplicationAppversionLifecycleArgs] = None,
arn: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> Application
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)
public static Application get(String name, Output<String> id, ApplicationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Appversion
Lifecycle ApplicationAppversion Lifecycle - 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
- Dictionary<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. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Appversion
Lifecycle ApplicationAppversion Lifecycle Args - 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
- 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. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- appversion
Lifecycle ApplicationAppversion Lifecycle - 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
- 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. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- appversion
Lifecycle ApplicationAppversion Lifecycle - 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
- {[key: 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. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- appversion_
lifecycle ApplicationAppversion Lifecycle Args - 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
- Mapping[str, str]
- 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. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- appversion
Lifecycle Property Map - 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
- Map<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. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Supporting Types
ApplicationAppversionLifecycle, ApplicationAppversionLifecycleArgs
- Service
Role string - The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.
- Delete
Source boolFrom S3 - Set to
true
to delete a version's source bundle from S3 when the application version is deleted. - Max
Age intIn Days - The number of days to retain an application version ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.).
- Max
Count int - The maximum number of application versions to retain ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.).
- Service
Role string - The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.
- Delete
Source boolFrom S3 - Set to
true
to delete a version's source bundle from S3 when the application version is deleted. - Max
Age intIn Days - The number of days to retain an application version ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.).
- Max
Count int - The maximum number of application versions to retain ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.).
- service
Role String - The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.
- delete
Source BooleanFrom S3 - Set to
true
to delete a version's source bundle from S3 when the application version is deleted. - max
Age IntegerIn Days - The number of days to retain an application version ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.).
- max
Count Integer - The maximum number of application versions to retain ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.).
- service
Role string - The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.
- delete
Source booleanFrom S3 - Set to
true
to delete a version's source bundle from S3 when the application version is deleted. - max
Age numberIn Days - The number of days to retain an application version ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.).
- max
Count 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.
- delete_
source_ boolfrom_ s3 - Set to
true
to delete a version's source bundle from S3 when the application version is deleted. - max_
age_ intin_ days - The number of days to retain an application version ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.).
- max_
count int - The maximum number of application versions to retain ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.).
- service
Role String - The ARN of an IAM service role under which the application version is deleted. Elastic Beanstalk must have permission to assume this role.
- delete
Source BooleanFrom S3 - Set to
true
to delete a version's source bundle from S3 when the application version is deleted. - max
Age NumberIn Days - The number of days to retain an application version ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.).
- max
Count Number - The maximum number of application versions to retain ('max_age_in_days' and 'max_count' cannot be enabled simultaneously.).
Import
Using pulumi import
, import Elastic Beanstalk Applications using the name
. For example:
$ pulumi import aws:elasticbeanstalk/application:Application tf_test tf-test-name
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.