Files
floci/mkdocs.yml
T
lex00 40e8aad55a feat(lambdamicrovms): AWS Lambda MicroVMs service module and its CloudFormation types (#2079)
* feat(lambdamicrovms): AWS Lambda MicroVMs service module

Adds the Lambda MicroVMs control plane, a service AWS took GA on 2026-06-22:
MicroVM images with a version and build lifecycle, the managed base-image
catalog, MicroVM CRUD, and VPC egress network connectors.

Two service models rather than one. Lambda Microvms (apiVersion 2025-09-09)
carries images and MicroVMs under /2025-09-09; Lambda Core (2026-04-30)
carries network connectors under /2026-04-04. Both sign as lambda, so their
requests arrive under the existing lambda claim in ResolvedServiceCatalog and
route by path. Neither prefix collides with anything LambdaController serves,
and both are enabled by the lambda service rather than adding a toggle.
Tagging rides the classic /2017-03-31/tags/ routes, so LambdaTagController
learns the MicroVM ARN forms.

Resources are stored per account and region. Floci resolves a per-request
account in AccountContextFilter and these ARNs carry it, so region-only
storage would let two accounts sharing a region read and mutate each other's
images, MicroVMs and connectors.

Wire shapes come from the vendored service models and, where the models are
silent or disagree with the service, from responses recorded against live
AWS. Several members the models mark optional are enforced in practice — a
connector needs ClientToken, OperatorRole, NetworkProtocol and
AssociatedComputeResourceTypes despite all four being optional in Smithy — and
several resources are returned in a different projection per operation: an
image in four shapes, a connector in four, with only the list summaries
carrying Type.

Builds converge instantly rather than on a timer, the usual emulator trade.
Where that would otherwise produce an inconsistent body it is handled
explicitly: a create or update reports the transitional state and does not
name the version it is minting as active, because a client reading otherwise
would launch a MicroVM off a version that does not exist yet.

Auth tokens, the per-VM endpoint, and the idle and suspend timers are
deliberately out of scope here; they belong to a full-fidelity MicroVMs
emulator rather than to CloudFormation provisioning.

Verified against a suite of responses recorded from live AWS
(https://github.com/INTENTIUS/m80): 26 checks over the image, MicroVM and
connector lifecycles, 0 failures.

* feat(cloudformation): provision AWS::Lambda::MicrovmImage and AWS::Lambda::NetworkConnector

Registers a CfnResourceProvisioner for the two MicroVM CloudFormation types
against the LambdaMicrovmsService added alongside, so a template declaring
either provisions and deletes rather than being skipped.

Uses the CloudFormationResourceRegistry interface rather than the switch in
CloudFormationResourceProvisioner, following SqsCfnProvisioner.

* test(lambdamicrovms): AWS CLI compatibility coverage for images, MicroVMs and connectors

* fix(lambdamicrovms): wire service state through StorageFactory

Images, MicroVMs and connectors were held in plain in-memory maps, so in
persistent mode a restarted Floci lost them while the CloudFormation stacks that
created them survived. Those stacks then referenced resources that no longer
existed and DeleteStack failed on the 404.

The three stores are now StorageBackedMap over StorageFactory backends, keyed
region/id. MicroVMs are delivered as part of the lambda service, so they share
its storage key and therefore its configured mode and flush interval rather than
declaring their own. The account half of the key is dropped from the service and
left to the backend, which prefixes and strips the same account the
RegionResolver returns, so region and account isolation are unchanged.

StorageBackedMap only marks the backend dirty on put and remove, so every path
that mutated a stored object in place now writes it back: image update, version
status, version delete, rebuild, MicroVM settle and terminate, connector settle
and update, and both tag paths.

* style(core): import the lambda microvms controllers in the service catalog

* fix(lambdamicrovms): register the persisted types for reflection

Moving images, microvms and connectors into StorageBackedMap made their model
classes persisted types, and PersistedModelReflectionTest fails on any that lack
@RegisterForReflection because native-image persistence cannot rebuild them on
restart.
2026-08-10 23:10:48 -05:00

153 lines
4.9 KiB
YAML

site_name: Floci
site_description: Fast, free, open-source local AWS emulator
site_url: https://floci.io/floci/
repo_url: https://github.com/floci-io/floci
repo_name: floci-io/floci
edit_uri: edit/main/docs/
theme:
name: material
custom_dir: overrides
logo: assets/floci-header.svg
favicon: assets/floci.svg
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
primary: custom
accent: custom
toggle:
icon: material/brightness-7
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: custom
accent: custom
toggle:
icon: material/brightness-4
name: Switch to light mode
features:
- navigation.tabs
- navigation.sections
- navigation.top
- navigation.instant
- search.highlight
- search.suggest
- content.code.copy
- content.code.annotate
- content.tabs.link
extra_css:
- assets/extra.css
plugins:
- search
markdown_extensions:
- admonition
- pymdownx.details
- pymdownx.superfences
- pymdownx.highlight:
anchor_linenums: true
- pymdownx.tabbed:
alternate_style: true
- pymdownx.inlinehilite
- tables
- attr_list
nav:
- Home: index.md
- Getting Started:
- Quick Start: getting-started/quick-start.md
- Installation: getting-started/installation.md
- AWS CLI & SDK Setup: getting-started/aws-setup.md
- Migrate from LocalStack: getting-started/migrate-from-localstack.md
- Configuration:
- Environment Variables: configuration/environment-variables.md
- Docker Images: configuration/docker-images.md
- Docker Compose: configuration/docker-compose.md
- Ports Reference: configuration/ports.md
- Multi-Account Isolation: configuration/multi-account.md
- Storage Modes: configuration/storage.md
- TLS / HTTPS: configuration/tls.md
- Initialization Hooks: configuration/initialization-hooks.md
- Advanced:
- application.yml Reference: configuration/advanced/application-yml.md
- Services:
- Overview: services/index.md
- SSM Parameter Store: services/ssm.md
- SQS: services/sqs.md
- SNS: services/sns.md
- SES: services/ses.md
- S3: services/s3.md
- DynamoDB: services/dynamodb.md
- Lambda: services/lambda.md
- Lambda MicroVMs: services/lambda-microvms.md
- API Gateway: services/api-gateway.md
- Cognito: services/cognito.md
- KMS: services/kms.md
- Kinesis: services/kinesis.md
- Managed Service for Apache Flink: services/kinesisanalytics.md
- Secrets Manager: services/secrets-manager.md
- CloudFormation: services/cloudformation.md
- Step Functions: services/step-functions.md
- IAM: services/iam.md
- STS: services/sts.md
- ElastiCache: services/elasticache.md
- MemoryDB: services/memorydb.md
- RDS: services/rds.md
- RDS Data API: services/rds-data.md
- MSK (Kafka): services/msk.md
- Glue: services/glue.md
- Neptune: services/neptune.md
- DocumentDB: services/docdb.md
- Athena: services/athena.md
- Data Firehose: services/firehose.md
- EventBridge: services/eventbridge.md
- EventBridge Pipes: services/pipes.md
- EventBridge Scheduler: services/scheduler.md
- CloudWatch: services/cloudwatch.md
- CloudWatch RUM: services/rum.md
- ACM: services/acm.md
- ECS: services/ecs.md
- ECR: services/ecr.md
- Resource Groups Tagging API: services/resource-groups-tagging.md
- EKS: services/eks.md
- MWAA: services/mwaa.md
- OpenSearch: services/opensearch.md
- EC2: services/ec2.md
- Lightsail: services/lightsail.md
- AppConfig: services/appconfig.md
- Bedrock Runtime: services/bedrock-runtime.md
- ELB v2: services/elb.md
- Auto Scaling: services/autoscaling.md
- Elastic Beanstalk: services/elastic-beanstalk.md
- CodeBuild: services/codebuild.md
- AWS Batch: services/batch.md
- CodeDeploy: services/codedeploy.md
- CodePipeline: services/codepipeline.md
- AWS Backup: services/backup.md
- CloudTrail: services/cloudtrail.md
- CloudFront: services/cloudfront.md
- Route53: services/route53.md
- AWS Cloud Map: services/cloudmap.md
- AWS IoT Core: services/iot.md
- AppSync: services/appsync.md
- Transfer Family: services/transfer.md
- AWS Config: services/config.md
- CloudTrail: services/cloudtrail.md
- EMR: services/emr.md
- WAF v2: services/wafv2.md
- Textract: services/textract.md
- Transcribe: services/transcribe.md
- Pricing: services/pricing.md
- Cost Explorer: services/ce.md
- Cost and Usage Reports: services/cur.md
- BCM Data Exports: services/bcm-data-exports.md
- Testcontainers:
- Overview: testcontainers/index.md
- Java: testcontainers/java.md
- Node.js / TypeScript: testcontainers/nodejs.md
- Python: testcontainers/python.md
- Go: testcontainers/go.md
- Contributing: contributing.md