Skip to main content

application_versions

Creates, updates, deletes or gets an application_version resource or lists application_versions in a region

Overview

Nameapplication_versions
TypeResource
DescriptionResource Type definition for AWS::ElasticBeanstalk::ApplicationVersion
Idaws.elasticbeanstalk.application_versions

Fields

NameDatatypeDescription
idstring
application_namestringThe name of the Elastic Beanstalk application that is associated with this application version.
descriptionstringA description of this application version.
source_bundleobjectThe Amazon S3 bucket and key that identify the location of the source bundle for this version.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTApplicationName, SourceBundle, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all application_versions in a region.

SELECT
region,
id,
application_name,
description,
source_bundle
FROM aws.elasticbeanstalk.application_versions
WHERE region = 'us-east-1';

Gets all properties from an individual application_version.

SELECT
region,
id,
application_name,
description,
source_bundle
FROM aws.elasticbeanstalk.application_versions
WHERE region = 'us-east-1' AND data__Identifier = '<ApplicationName>|<Id>';

INSERT example

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

/*+ create */
INSERT INTO aws.elasticbeanstalk.application_versions (
ApplicationName,
SourceBundle,
region
)
SELECT
'{{ ApplicationName }}',
'{{ SourceBundle }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

elasticbeanstalk:CreateApplicationVersion,
elasticbeanstalk:DescribeApplicationVersions,
s3:GetObject,
s3:PutObject

Read

elasticbeanstalk:DescribeApplicationVersions

Update

elasticbeanstalk:UpdateApplicationVersion

Delete

elasticbeanstalk:DeleteApplicationVersion

List

elasticbeanstalk:DescribeApplicationVersions