Amazon EC2
Launch instances that Floci runs as Docker containers, pass them user data, and stop, start, reboot or terminate them, to test scripts and apps that expect an EC2 host.
Features
Instances
- List instances with state, type and launch time, newest first; find by name or ID and filter by state
- Launch an instance: name (saved as the
Nametag), AMI from Floci's catalog (Amazon Linux 2023 preselected), instance type and user data - Warnings for AMIs that Floci doesn't run as named or may fail to start
- Actions menu on the list and the instance page: Stop instance, Start instance, Reboot instance, Terminate instance; only actions valid for the current state are enabled
- The page refreshes by itself while an instance is changing state
Instance page
- Details tab: instance ID, state, type, AMI, launch time; an explanation when an instance ended up Terminated on its own
- User data tab: the script the instance was launched with
- Stack: X link to CloudFormation when the instance was created by a stack
Typical workflow
- On Instances, choose Launch instance.
- Enter a name, keep the default AMI and type, and paste a shell script into User data.
- Choose Launch instance; the instance page opens and shows Pending, then Running.
- Use Actions › Stop instance / Start instance to test how your setup handles restarts, and Terminate instance when done.
Works with
- Amazon RDS: instances join the same network, so user data can reach a database at the endpoint shown on the RDS page
- AWS CloudFormation: instances created by a stack link to it
Limitations
- Instances are containers, not VMs: the instance type doesn't change the container's resources.
- The first launch of an AMI pulls its image and can take a minute.
- Floci doesn't run Windows (it starts the AMI as Amazon Linux 2023). An arm64 AMI may fail to start on an Intel machine, and the Alpine image often fails to pull; the instance then ends up Terminated with no reason.
- User data needs internet access, runs about 40–80 seconds after the instance starts, and its output is only in Floci's logs. It doesn't run again after Stop and Start.
- Stopping an instance takes about 30 seconds.
- After a Floci restart, instances still show Running while their containers are stopped, and Reboot doesn't bring them back: Stop, then Start.
- Floci keeps terminated instances in the list; filter by state to hide them.
- Keep
FLOCI_SERVICES_EC2_VPC_NETWORKS_ENABLED: "false"on Floci. With VPC networks on, a Floci restart after a launch leaves Lambda functions unable to reach Floci (ECONNREFUSED 127.0.0.1:4566). See Troubleshooting.