Skip to main content

platform_versions

Creates, updates, deletes, gets or lists a platform_versions resource.

Overview

Nameplatform_versions
TypeResource
Idaws.elasticbeanstalk.platform_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
custom_ami_liststringThe custom AMIs supported by the platform version.
date_createdstringThe date when the platform version was created.
date_updatedstringThe date when the platform version was last updated.
descriptionstringThe description of the platform version.
frameworksstringThe frameworks supported by the platform version.
maintainerstringInformation about the maintainer of the platform version.
operating_system_namestringThe operating system used by the platform version.
operating_system_versionstringThe version of the operating system used by the platform version.
platform_arnstringThe ARN of the platform version.
platform_branch_lifecycle_statestringThe state of the platform version's branch in its lifecycle. Possible values: Beta | Supported | Deprecated | Retired
platform_branch_namestringThe platform branch to which the platform version belongs.
platform_categorystringThe category of the platform version.
platform_lifecycle_statestringThe state of the platform version in its lifecycle. Possible values: Recommended | null If a null value is returned, the platform version isn't the recommended one for its branch. Each platform branch has a single recommended platform version, typically the most recent one.
platform_namestringThe name of the platform version.
platform_ownerstringThe AWS account ID of the person who created the platform version.
platform_statusstringThe status of the platform version.
platform_versionstringThe version of the platform version.
programming_languagesstringThe programming languages supported by the platform version.
solution_stack_namestringThe name of the solution stack used by the platform version.
supported_addon_liststringThe additions supported by the platform version.
supported_tier_liststringThe tiers supported by the platform version.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_platform_versionselectregionPlatformArnDescribes a platform version. Provides full details. Compare to ListPlatformVersions, which provides summary information about a list of platform versions. For definitions of platform version and other platform-related terms, see AWS Elastic Beanstalk Platforms Glossary.
create_platform_versioninsertPlatformName, PlatformVersion, PlatformDefinitionBundle, regionEnvironmentName, OptionSettings, TagsCreate a new version of your custom platform.
delete_platform_versiondeleteregionPlatformArnDeletes the specified version of a custom platform.
list_platform_versionsexecregionFilters, MaxRecords, NextTokenLists the platform versions available for your account in an AWS Region. Provides summary information about each platform version. Compare to DescribePlatformVersion, which provides full details about a single platform version. For definitions of platform version and other platform-related terms, see AWS Elastic Beanstalk Platforms Glossary.

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
PlatformDefinitionBundleobjectThe location of the platform definition archive in Amazon S3.
PlatformNamestringThe name of your custom platform.
PlatformVersionstringThe number, such as 1.0.2, for the new platform version.
regionstringAWS region (default: us-east-1)
EnvironmentNamestringThe name of the builder environment.
FiltersarrayCriteria for restricting the resulting list of platform versions. The filter is interpreted as a logical conjunction (AND) of the separate PlatformFilter terms.
MaxRecordsintegerThe maximum number of platform version values returned in one call.
NextTokenstringFor a paginated request. Specify a token from a previous response page to retrieve the next response page. All other parameter values must be identical to the ones specified in the initial request. If no NextToken is specified, the first page is retrieved.
OptionSettingsarrayThe configuration option settings to apply to the builder environment.
PlatformArnstringThe ARN of the version of the custom platform.
TagsarraySpecifies the tags applied to the new platform version. Elastic Beanstalk applies these tags only to the platform version. Environments that you create using the platform version don't inherit the tags.

SELECT examples

Describes a platform version. Provides full details. Compare to ListPlatformVersions, which provides summary information about a list of platform versions. For definitions of platform version and other platform-related terms, see AWS Elastic Beanstalk Platforms Glossary.

SELECT
custom_ami_list,
date_created,
date_updated,
description,
frameworks,
maintainer,
operating_system_name,
operating_system_version,
platform_arn,
platform_branch_lifecycle_state,
platform_branch_name,
platform_category,
platform_lifecycle_state,
platform_name,
platform_owner,
platform_status,
platform_version,
programming_languages,
solution_stack_name,
supported_addon_list,
supported_tier_list
FROM aws.elasticbeanstalk.platform_versions
WHERE region = '{{ region }}' -- required
AND PlatformArn = '{{ PlatformArn }}'
;

INSERT examples

Create a new version of your custom platform.

INSERT INTO aws.elasticbeanstalk.platform_versions (
PlatformName,
PlatformVersion,
PlatformDefinitionBundle,
region,
EnvironmentName,
OptionSettings,
Tags
)
SELECT
'{{ PlatformName }}',
'{{ PlatformVersion }}',
'{{ PlatformDefinitionBundle }}',
'{{ region }}',
'{{ EnvironmentName }}',
'{{ OptionSettings }}',
'{{ Tags }}'
RETURNING
builder,
platform_summary
;

DELETE examples

Deletes the specified version of a custom platform.

DELETE FROM aws.elasticbeanstalk.platform_versions
WHERE region = '{{ region }}' --required
AND PlatformArn = '{{ PlatformArn }}'
;

Lifecycle Methods

Lists the platform versions available for your account in an AWS Region. Provides summary information about each platform version. Compare to DescribePlatformVersion, which provides full details about a single platform version. For definitions of platform version and other platform-related terms, see AWS Elastic Beanstalk Platforms Glossary.

EXEC aws.elasticbeanstalk.platform_versions.list_platform_versions
@region='{{ region }}' --required,
@Filters='{{ Filters }}',
@MaxRecords='{{ MaxRecords }}',
@NextToken='{{ NextToken }}'
;