Skip to main content

applications

Creates, updates, deletes, gets or lists an applications resource.

Overview

Nameapplications
TypeResource
Idaws.elasticbeanstalk.applications

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_arnstringThe Amazon Resource Name (ARN) of the application.
application_namestringThe name of the application.
configuration_templatesstringThe names of the configuration templates associated with this application.
date_createdstringThe date when the application was created.
date_updatedstringThe date when the application was last modified.
descriptionstringUser-defined description of the application.
resource_lifecycle_configstringThe lifecycle settings for the application.
versionsstringThe names of the versions for this application.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_applicationsselectregionApplicationNamesReturns the descriptions of existing applications.
create_configuration_templateinsertApplicationName, TemplateName, regionSolutionStackName, PlatformArn, SourceConfiguration, EnvironmentId, Description, OptionSettings, TagsCreates an AWS Elastic Beanstalk configuration template, associated with a specific Elastic Beanstalk application. You define application configuration settings in a configuration template. You can then use the configuration template to deploy different versions of the application with the same configuration settings. Templates aren't associated with any environment. The EnvironmentName response element is always null. Related Topics DescribeConfigurationOptions DescribeConfigurationSettings ListAvailableSolutionStacks
create_applicationinsertApplicationName, regionDescription, ResourceLifecycleConfig, TagsCreates an application that has one configuration template named default and no application versions.
update_application_resource_lifecycleupdateApplicationName, ResourceLifecycleConfig, regionModifies lifecycle settings for an application.
update_configuration_templateupdateApplicationName, TemplateName, regionDescription, OptionSettings, OptionsToRemoveUpdates the specified configuration template to have the specified properties or configuration option values. If a property (for example, ApplicationName) is not provided, its value remains unchanged. To clear such properties, specify an empty string. Related Topics DescribeConfigurationOptions
update_applicationupdateApplicationName, regionDescriptionUpdates the specified application to have the specified properties. If a property (for example, description) is not provided, the value remains unchanged. To clear these properties, specify an empty string.
delete_configuration_templatedeleteApplicationName, TemplateName, regionDeletes the specified configuration template. When you launch an environment using a configuration template, the environment gets a copy of the template. You can delete or modify the environment's copy of the template without affecting the running environment.
delete_applicationdeleteApplicationName, regionTerminateEnvByForceDeletes the specified application along with all associated versions and configurations. The application versions will not be deleted from your Amazon S3 bucket. You cannot delete an application that has a running environment.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
ApplicationNamestringThe name of the application to delete.
ResourceLifecycleConfigobjectThe lifecycle configuration.
TemplateNamestringThe name of the configuration template to delete.
regionstringAWS region (default: us-east-1)
ApplicationNamesarrayIf specified, AWS Elastic Beanstalk restricts the returned descriptions to only include those with the specified names.
DescriptionstringA new description for the application. Default: If not specified, AWS Elastic Beanstalk does not update the description.
EnvironmentIdstringThe ID of an environment whose settings you want to use to create the configuration template. You must specify EnvironmentId if you don't specify PlatformArn, SolutionStackName, or SourceConfiguration.
OptionSettingsarrayA list of configuration option settings to update with the new specified option value.
OptionsToRemovearrayA list of configuration options to remove from the configuration set. Constraint: You can remove only UserDefined configuration options.
PlatformArnstringThe Amazon Resource Name (ARN) of the custom platform. For more information, see Custom Platforms in the AWS Elastic Beanstalk Developer Guide. If you specify PlatformArn, then don't specify SolutionStackName.
ResourceLifecycleConfigobjectSpecifies an application resource lifecycle configuration to prevent your application from accumulating too many versions.
SolutionStackNamestringThe name of an Elastic Beanstalk solution stack (platform version) that this configuration uses. For example, 64bit Amazon Linux 2013.09 running Tomcat 7 Java 7. A solution stack specifies the operating system, runtime, and application server for a configuration template. It also determines the set of configuration options as well as the possible and default values. For more information, see Supported Platforms in the AWS Elastic Beanstalk Developer Guide. You must specify SolutionStackName if you don't specify PlatformArn, EnvironmentId, or SourceConfiguration. Use the ListAvailableSolutionStacks API to obtain a list of available solution stacks.
SourceConfigurationobjectAn Elastic Beanstalk configuration template to base this one on. If specified, Elastic Beanstalk uses the configuration values from the specified configuration template to create a new configuration. Values specified in OptionSettings override any values obtained from the SourceConfiguration. You must specify SourceConfiguration if you don't specify PlatformArn, EnvironmentId, or SolutionStackName. Constraint: If both solution stack name and source configuration are specified, the solution stack of the source configuration template must match the specified solution stack name.
TagsarraySpecifies the tags applied to the application. Elastic Beanstalk applies these tags only to the application. Environments that you create in the application don't inherit the tags.
TerminateEnvByForcebooleanWhen set to true, running environments will be terminated before deleting the application.

SELECT examples

Returns the descriptions of existing applications.

SELECT
application_arn,
application_name,
configuration_templates,
date_created,
date_updated,
description,
resource_lifecycle_config,
versions
FROM aws.elasticbeanstalk.applications
WHERE region = '{{ region }}' -- required
AND ApplicationNames = '{{ ApplicationNames }}'
;

INSERT examples

Creates an AWS Elastic Beanstalk configuration template, associated with a specific Elastic Beanstalk application. You define application configuration settings in a configuration template. You can then use the configuration template to deploy different versions of the application with the same configuration settings. Templates aren't associated with any environment. The EnvironmentName response element is always null. Related Topics DescribeConfigurationOptions DescribeConfigurationSettings ListAvailableSolutionStacks

INSERT INTO aws.elasticbeanstalk.applications (
ApplicationName,
TemplateName,
region,
SolutionStackName,
PlatformArn,
SourceConfiguration,
EnvironmentId,
Description,
OptionSettings,
Tags
)
SELECT
'{{ ApplicationName }}',
'{{ TemplateName }}',
'{{ region }}',
'{{ SolutionStackName }}',
'{{ PlatformArn }}',
'{{ SourceConfiguration }}',
'{{ EnvironmentId }}',
'{{ Description }}',
'{{ OptionSettings }}',
'{{ Tags }}'
RETURNING
application_name,
date_created,
date_updated,
deployment_status,
description,
environment_name,
option_settings,
platform_arn,
solution_stack_name,
template_name
;

UPDATE examples

Modifies lifecycle settings for an application.

UPDATE aws.elasticbeanstalk.applications
SET
-- No updatable properties
WHERE
ApplicationName = '{{ ApplicationName }}' --required
AND ResourceLifecycleConfig = '{{ ResourceLifecycleConfig }}' --required
AND region = '{{ region }}' --required
RETURNING
application_name,
resource_lifecycle_config;

DELETE examples

Deletes the specified configuration template. When you launch an environment using a configuration template, the environment gets a copy of the template. You can delete or modify the environment's copy of the template without affecting the running environment.

DELETE FROM aws.elasticbeanstalk.applications
WHERE ApplicationName = '{{ ApplicationName }}' --required
AND TemplateName = '{{ TemplateName }}' --required
AND region = '{{ region }}' --required
;