application_versions
Creates, updates, deletes or gets an application_version
resource or lists application_versions
in a region
Overview
Name | application_versions |
Type | Resource |
Description | Resource Type definition for AWS::ElasticBeanstalk::ApplicationVersion |
Id | aws.elasticbeanstalk.application_versions |
Fields
Name | Datatype | Description |
---|---|---|
id | string | |
application_name | string | The name of the Elastic Beanstalk application that is associated with this application version. |
description | string | A description of this application version. |
source_bundle | object | The Amazon S3 bucket and key that identify the location of the source bundle for this version. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | ApplicationName, SourceBundle, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.elasticbeanstalk.application_versions (
ApplicationName,
SourceBundle,
region
)
SELECT
'{{ ApplicationName }}',
'{{ SourceBundle }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.elasticbeanstalk.application_versions (
ApplicationName,
Description,
SourceBundle,
region
)
SELECT
'{{ ApplicationName }}',
'{{ Description }}',
'{{ SourceBundle }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: application_version
props:
- name: ApplicationName
value: '{{ ApplicationName }}'
- name: Description
value: '{{ Description }}'
- name: SourceBundle
value:
S3Bucket: '{{ S3Bucket }}'
S3Key: '{{ S3Key }}'
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