Elastic Load Balancing v2
Protocol: Query (XML) — POST http://localhost:4566/ with Action= parameter
Floci supports Application Load Balancers (ALB) and Network Load Balancers (NLB) through the ELBv2 management API. The control plane is AWS SDK / CLI / Terraform compatible, and HTTP listeners can forward to registered instance targets using the target's reachable local address.
Supported Actions
Load Balancers
| Action |
Description |
| CreateLoadBalancer |
- |
| DescribeLoadBalancers |
- |
| DeleteLoadBalancer |
- |
| ModifyLoadBalancerAttributes |
- |
| DescribeLoadBalancerAttributes |
- |
| DescribeCapacityReservation |
- |
| SetSecurityGroups |
- |
| SetSubnets |
- |
| SetIpAddressType |
- |
Target Groups
| Action |
Description |
| CreateTargetGroup |
- |
| DescribeTargetGroups |
- |
| ModifyTargetGroup |
- |
| DeleteTargetGroup |
- |
| ModifyTargetGroupAttributes |
- |
| DescribeTargetGroupAttributes |
- |
Targets
| Action |
Description |
| RegisterTargets |
- |
| DeregisterTargets |
- |
| DescribeTargetHealth |
- |
Listeners
| Action |
Description |
| CreateListener |
- |
| DescribeListeners |
- |
| ModifyListener |
- |
| ModifyListenerAttributes |
- |
| DescribeListenerAttributes |
- |
| DeleteListener |
- |
| AddListenerCertificates |
- |
| RemoveListenerCertificates |
- |
| DescribeListenerCertificates |
- |
Rules
| Action |
Description |
| CreateRule |
- |
| DescribeRules |
- |
| ModifyRule |
- |
| DeleteRule |
- |
| SetRulePriorities |
- |
Tags
| Action |
Description |
| AddTags |
- |
| RemoveTags |
- |
| DescribeTags |
- |
Metadata
| Action |
Description |
| DescribeSSLPolicies |
- |
| DescribeAccountLimits |
- |
Behavior Notes
- Load balancer, target group, listener, rule, and tag state is persisted through Floci storage and rebuilt on service startup.
- Load balancers are created in
active state.
- HTTP listener sockets are preserved when listener actions change and are restarted only when socket-level settings such as port change.
- Instance targets are resolved through EC2 instance private addresses so local load balancer traffic can reach containers.
- Target health starts in
initial state with reason Elb.RegistrationInProgress and is updated by Floci's health checker when monitoring is active.
- Each
CreateListener automatically creates an immutable default rule (priority=default, isDefault=true). This rule cannot be deleted; use ModifyListener to change its action.
- Rule priorities are validated for uniqueness.
SetRulePriorities is atomic: all priority assignments are validated before any change is committed.
DeleteTargetGroup is rejected with ResourceInUse while the target group is referenced by any listener or rule.
DeleteRule is rejected with OperationNotPermitted for the default rule.
DescribeSSLPolicies returns a pre-seeded list of standard AWS SSL policies (ELBSecurityPolicy-*).
DescribeAccountLimits returns standard default limits (e.g., 50 load balancers per region, 100 target groups, etc.).
ARN Format
Examples
Configuration
| Environment variable |
Default |
Description |
FLOCI_SERVICES_ELBV2_ENABLED |
true |
Enable or disable the ELBv2 service |
Listener Ports
Listener sockets bind on the Floci host. Expose any listener ports you need in Docker Compose when Floci itself runs in a container, similar to RDS and ElastiCache proxy ports.