Skip to content

MWAA (Airflow)

CloudMock emulates Amazon MWAA (Managed Workflows for Apache Airflow), supporting environment lifecycle management, CLI/web login token generation, and tagging.

OperationStatusNotes
CreateEnvironmentSupportedCreates an Airflow environment
GetEnvironmentSupportedReturns environment details
ListEnvironmentsSupportedLists all environments
UpdateEnvironmentSupportedUpdates environment configuration
DeleteEnvironmentSupportedDeletes an environment
CreateCliTokenSupportedGenerates a stub CLI token
CreateWebLoginTokenSupportedGenerates a stub web login token
TagResourceSupportedAdds tags to a resource
UntagResourceSupportedRemoves tags from a resource
ListTagsForResourceSupportedLists tags for a resource
import { MWAAClient, CreateEnvironmentCommand } from '@aws-sdk/client-mwaa';
const client = new MWAAClient({
endpoint: 'http://localhost:4566',
region: 'us-east-1',
credentials: { accessKeyId: 'test', secretAccessKey: 'test' },
});
await client.send(new CreateEnvironmentCommand({
Name: 'my-airflow-env',
ExecutionRoleArn: 'arn:aws:iam::000000000000:role/airflow-role',
SourceBucketArn: 'arn:aws:s3:::my-dags-bucket',
DagS3Path: 'dags/',
}));
import boto3
client = boto3.client('mwaa',
endpoint_url='http://localhost:4566',
region_name='us-east-1',
aws_access_key_id='test',
aws_secret_access_key='test')
client.create_environment(
Name='my-airflow-env',
ExecutionRoleArn='arn:aws:iam::000000000000:role/airflow-role',
SourceBucketArn='arn:aws:s3:::my-dags-bucket',
DagS3Path='dags/')
cloudmock.yml
services:
airflow:
enabled: true
  • No actual Airflow cluster is provisioned
  • CLI and web login tokens are stubs and cannot be used with real Airflow
  • Environment status transitions are simulated