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.
Minimal Example
Section titled “Minimal Example”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"});
Advanced Configuration
Section titled “Advanced Configuration”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});
Version with Custom Source Bundle
Section titled “Version with Custom Source Bundle”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"});
Application Version with No Description
Section titled “Application Version with No Description”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" }});