Skip to main content

applications

Creates, updates, deletes or gets an application resource or lists applications in a region

Overview

Nameapplications
TypeResource
DescriptionThe AWS::ElasticBeanstalk::Application resource specifies an Elastic Beanstalk application.
Idaws.elasticbeanstalk.applications

Fields

NameDatatypeDescription
application_namestringA name for the Elastic Beanstalk application. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the application name.
descriptionstringYour description of the application.
resource_lifecycle_configobjectSpecifies an application resource lifecycle configuration to prevent your application from accumulating too many versions.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all applications in a region.

SELECT
region,
application_name,
description,
resource_lifecycle_config
FROM aws.elasticbeanstalk.applications
WHERE region = 'us-east-1';

Gets all properties from an individual application.

SELECT
region,
application_name,
description,
resource_lifecycle_config
FROM aws.elasticbeanstalk.applications
WHERE region = 'us-east-1' AND data__Identifier = '<ApplicationName>';

INSERT example

Use the following StackQL query and manifest file to create a new application resource, using stack-deploy.

/*+ create */
INSERT INTO aws.elasticbeanstalk.applications (
ApplicationName,
Description,
ResourceLifecycleConfig,
region
)
SELECT
'{{ ApplicationName }}',
'{{ Description }}',
'{{ ResourceLifecycleConfig }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.elasticbeanstalk.applications
WHERE data__Identifier = '<ApplicationName>'
AND region = 'us-east-1';

Permissions

To operate on the applications resource, the following permissions are required:

Create

elasticbeanstalk:CreateApplication

Read

elasticbeanstalk:DescribeApplications

Update

elasticbeanstalk:UpdateApplication,
elasticbeanstalk:UpdateApplicationResourceLifecycle

Delete

elasticbeanstalk:DeleteApplication

List

elasticbeanstalk:DescribeApplications