Skip to content
GitHubXDiscordRSS

ApplicationVersion

Learn how to create, update, and manage AWS ElasticBeanstalk ApplicationVersions using Alchemy Cloud Control.

The ApplicationVersion resource allows you to manage AWS ElasticBeanstalk ApplicationVersions and their deployment configurations.

Create a basic Elastic Beanstalk application version with required properties.

import AWS from "alchemy/aws/control";
const appVersion = await AWS.ElasticBeanstalk.ApplicationVersion("myAppVersion", {
ApplicationName: "MyWebApp",
SourceBundle: {
S3Bucket: "my-app-bucket",
S3Key: "my-app-v1.zip"
},
Description: "Initial version of my web application"
});

Create an application version with additional properties like adopting existing resources.

const advancedAppVersion = await AWS.ElasticBeanstalk.ApplicationVersion("advancedAppVersion", {
ApplicationName: "MyWebApp",
SourceBundle: {
S3Bucket: "my-app-bucket",
S3Key: "my-app-v2.zip"
},
Description: "Updated version of my web application",
adopt: true // Adopt existing resource if it already exists
});

Deploy an application version using a different source bundle configuration.

const customSourceBundleVersion = await AWS.ElasticBeanstalk.ApplicationVersion("customSourceBundleVersion", {
ApplicationName: "MyWebApp",
SourceBundle: {
S3Bucket: "my-app-bucket",
S3Key: "my-app-v3.zip"
},
Description: "Version with a custom source bundle"
});

Create an application version without providing a description.

const noDescriptionVersion = await AWS.ElasticBeanstalk.ApplicationVersion("noDescriptionVersion", {
ApplicationName: "MyWebApp",
SourceBundle: {
S3Bucket: "my-app-bucket",
S3Key: "my-app-v4.zip"
}
});