Skip to content

Elastic Beanstalk

CloudMock emulates AWS Elastic Beanstalk, supporting application and environment lifecycle, application versions, and configuration templates.

OperationStatusNotes
CreateApplicationSupportedCreates an application
DescribeApplicationsSupportedLists applications
DeleteApplicationSupportedDeletes an application
CreateApplicationVersionSupportedCreates an application version
DescribeApplicationVersionsSupportedLists application versions
CreateEnvironmentSupportedCreates an environment
DescribeEnvironmentsSupportedLists environments
TerminateEnvironmentSupportedTerminates an environment
CreateConfigurationTemplateSupportedCreates a configuration template
DescribeConfigurationSettingsSupportedReturns configuration settings
DeleteConfigurationTemplateSupportedDeletes a configuration template
import { ElasticBeanstalkClient, CreateApplicationCommand, 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 CreateEnvironmentCommand({
ApplicationName: 'my-app',
EnvironmentName: 'my-env',
SolutionStackName: '64bit Amazon Linux 2 v5.8.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_environment(
ApplicationName='my-app',
EnvironmentName='my-env',
SolutionStackName='64bit Amazon Linux 2 v5.8.0 running Node.js 18')
cloudmock.yml
services:
elasticbeanstalk:
enabled: true
  • No actual infrastructure is provisioned for environments
  • Environment health is always reported as healthy
  • Application deployments are not executed