Table: aws_elastic_beanstalk_application_version - Query AWS Elastic Beanstalk Application Versions using SQL
The AWS Elastic Beanstalk Application Version is a component of AWS's platform-as-a-service (PaaS) offering, Elastic Beanstalk. It allows developers to deploy and manage applications in multiple languages without worrying about the infrastructure that runs those applications. The Elastic Beanstalk Application Version handles capacity provisioning, load balancing, and automatic scaling, among other tasks, enabling developers to focus on their application code.
Table Usage Guide
The aws_elastic_beanstalk_application_version
table in Steampipe provides you with information about application versions within AWS Elastic Beanstalk. This table enables you, as a DevOps engineer, to query application version-specific details, including application version ARN, description, date created, date updated, and associated metadata. You can utilize this table to gather insights on application versions, such as application version configurations, associated environments, and more. The schema outlines for you the various attributes of the Elastic Beanstalk application version, including the resource lifecycles, configurations, and associated tags.
Examples
Basic info
Explore the application versions in your AWS Elastic Beanstalk environment to understand their creation and update timeline, as well as the different configurations available. This can help in managing the application versions better by keeping track of their configurations and update history.
select application_name, application_version_arn, version_label, description, date_created, date_updated, source_bundlefrom aws_elastic_beanstalk_application_version;
select application_name, application_version_arn, version_label, description, date_created, date_updated, source_bundlefrom aws_elastic_beanstalk_application_version;
List the recently updated application versions
Identify the application versions that have been recently updated in your AWS Elastic Beanstalk environment. This can help in tracking the recent changes made to the application versions and understanding the impact of these changes on the environment.
select application_name, application_version_arn, version_label, date_updatedfrom aws_elastic_beanstalk_application_versionorder by date_updated desc;
select application_name, application_version_arn, version_label, date_updatedfrom aws_elastic_beanstalk_application_versionorder by date_updated desc;
List the application versions which are 'Processed'
Identify the application versions that are in the 'Processed' state in your AWS Elastic Beanstalk environment. This can help in understanding the status of the application versions and their readiness for deployment.
select application_name, application_version_arn, version_label, statusfrom aws_elastic_beanstalk_application_versionwhere status = 'Processed';
select application_name, application_version_arn, version_label, statusfrom aws_elastic_beanstalk_application_versionwhere status = 'Processed';
List the application versions of a specific application
Identify the application versions of a specific application in your AWS Elastic Beanstalk environment. This can help in understanding the different versions available for a specific application and their configurations.
select application_name, application_version_arn, version_label, description, date_created, date_updated, source_bundlefrom aws_elastic_beanstalk_application_versionwhere application_name = 'my-application';
select application_name, application_version_arn, version_label, description, date_created, date_updated, source_bundlefrom aws_elastic_beanstalk_application_versionwhere application_name = 'my-application';
List the application versions with specific tags
Identify the application versions with specific tags in your AWS Elastic Beanstalk environment. This can help in understanding the tags associated with the application versions and their metadata.
select application_name, application_version_arn, version_label, tagsfrom aws_elastic_beanstalk_application_versionwhere tags ->> 'Environment' = 'Production';
select application_name, application_version_arn, version_label, tagsfrom aws_elastic_beanstalk_application_versionwhere json_extract(tags, '$.Environment') = 'Production';
List the application versions where the source repository is stored in CodeCommit
Identify the application versions where the source repository is stored in AWS CodeCommit in your AWS Elastic Beanstalk environment. This can help in understanding the source repository of the application versions and their configurations.
select application_name, application_version_arn, version_labelfrom aws_elastic_beanstalk_application_versionwhere source_build_information ->> 'SourceRepository' = 'CodeCommit';
select application_name, application_version_arn, version_labelfrom aws_elastic_beanstalk_application_versionwhere json_extract(source_build_information, '$.SourceRepository') = 'CodeCommit';
Schema for aws_elastic_beanstalk_application_version
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
account_id | text | =, !=, ~~, ~~*, !~~, !~~* | The AWS Account ID in which the resource is located. |
akas | jsonb | Array of globally unique identifier strings (also known as) for the resource. | |
application_name | text | = | The name of the application to which the application version belongs. |
application_version_arn | text | The Amazon Resource Name (ARN) of the application version. | |
build_arn | text | Reference to the artifact from the AWS CodeBuild build. | |
date_created | timestamp with time zone | The creation date of the application version. | |
date_updated | timestamp with time zone | The last modified date of the application version. | |
description | text | The description of the application version. | |
partition | text | The AWS partition in which the resource is located (aws, aws-cn, or aws-us-gov). | |
region | text | The AWS Region in which the resource is located. | |
source_build_information | jsonb | Information about the source code for the application version if the source code was retrieved from AWS CodeCommit. | |
source_bundle | jsonb | The storage location of the application version's source bundle in Amazon S3. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
status | text | The processing status of the application version. Reflects the state of the application version during its creation. | |
tags | jsonb | A map of tags for the resource. | |
tags_src | jsonb | A list of tags assigned to the application. | |
title | text | A title for the resource, typically the resource name. | |
version_label | text | = | A unique identifier for the application version. |
Export
This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- aws
You can pass the configuration to the command with the --config
argument:
steampipe_export_aws --config '<your_config>' aws_elastic_beanstalk_application_version