Skip to content

Elastic Beanstalk

CloudMock emulates AWS Elastic Beanstalk, supporting the full application/version/environment hierarchy, configuration templates, platform version listing, and configuration settings validation.

OperationStatusNotes
CreateApplicationSupportedCreates an application
DescribeApplicationsSupportedLists applications
UpdateApplicationSupportedUpdates application description
DeleteApplicationSupportedCascades to versions and templates
CreateApplicationVersionSupportedMulti-version support per application
DescribeApplicationVersionsSupportedFilter by application name
DeleteApplicationVersionSupportedRemoves a specific version
CreateEnvironmentSupportedState machine: Launching → Ready
DescribeEnvironmentsSupportedFilter by application name
UpdateEnvironmentSupportedUpdate version label or description
TerminateEnvironmentSupportedState machine: Terminating → Terminated
CreateConfigurationTemplateSupported
DescribeConfigurationSettingsSupported
ValidateConfigurationSettingsSupportedReturns empty messages (all valid in mock)
DeleteConfigurationTemplateSupported
ListPlatformVersionsSupportedReturns mock platform list (Docker, Node.js, Python, Java)
Launching → Ready → Updating → Terminating → Terminated
import { ElasticBeanstalkClient, CreateApplicationCommand, CreateApplicationVersionCommand, CreateEnvironmentCommand } from '@aws-sdk/client-elastic-beanstalk';
const client = new ElasticBeanstalkClient({
endpoint: 'http://localhost:4566',
region: 'us-east-1',
credentials: { accessKeyId: 'test', secretAccessKey: 'test' },
});
await client.send(new CreateApplicationCommand({ ApplicationName: 'my-app' }));
await client.send(new CreateApplicationVersionCommand({
ApplicationName: 'my-app',
VersionLabel: 'v1.0.0',
SourceBundle: { S3Bucket: 'my-bucket', S3Key: 'app-v1.zip' },
}));
await client.send(new CreateEnvironmentCommand({
ApplicationName: 'my-app',
EnvironmentName: 'my-env',
VersionLabel: 'v1.0.0',
SolutionStackName: '64bit Amazon Linux 2023 v6.0.0 running Node.js 18',
}));
import boto3
client = boto3.client('elasticbeanstalk',
endpoint_url='http://localhost:4566',
region_name='us-east-1',
aws_access_key_id='test',
aws_secret_access_key='test')
client.create_application(ApplicationName='my-app')
client.create_application_version(
ApplicationName='my-app',
VersionLabel='v1.0.0',
SourceBundle={'S3Bucket': 'my-bucket', 'S3Key': 'app-v1.zip'})
client.create_environment(
ApplicationName='my-app',
EnvironmentName='my-env',
VersionLabel='v1.0.0')
cloudmock.yml
services:
elasticbeanstalk:
enabled: true
  • No actual infrastructure is provisioned for environments
  • Environment health transitions are simulated
  • Application deployments are not executed
  • ValidateConfigurationSettings always returns zero messages (all valid)
  • ListPlatformVersions returns a static list of common platforms