Enterprise Image
Introduction
Section titled “Introduction”LocalStack offers an Enterprise image that allows offline usage and includes a customer-specific configuration. This offline functionality is enabled by:
- Pre-installed packages required for running specific services that are usually downloaded on demand (such as
opensearchordynamodb-local). - A certificate keypair for secure connections to
localhost.localstack.cloud. - An embedded decryption key in the image, eliminating the need to contact the license server to operate LocalStack.
Why use Enterprise Image?
Section titled “Why use Enterprise Image?”- Airgapped environments: The Enterprise image is ideal for customers who operate in airgapped environments where internet access is restricted.
- Security Fixes: The Enterprise image is updated with the latest security fixes and patches including container image scans on a priority basis.
- Custom Configuration: The Enterprise image can be customized to include specific packages and configurations required by the customer.
- CI Usage: The Enterprise image can be used in CI/CD pipelines to ensure that the same image is used across all environments.
How to use the image?
Section titled “How to use the image?”-
After the image is pushed to the customer-specific ECR repository, the customer can pull and push it to their internal Docker registry.
-
Developers within the customer’s network can then pull the image from this registry.
-
To use the image from the command line interface (CLI), set the
imagefield on the container block to the name of the Enterprise image:.lstk/config.toml [[containers]]type = "aws"image = "localstack-enterprise"Terminal window lstk startSee Custom container image for details, including how
lstkfalls back to a locally present image when a pull fails.
“Online” vs “Offline” image
Section titled ““Online” vs “Offline” image”This section compares the standard LocalStack for AWS Docker image (“online”) with the customer-specific Enterprise image (“offline”).
Key differences
Section titled “Key differences”| Area | Standard image | Enterprise image |
|---|---|---|
| Internet requirement for core startup | Requires network access for normal license activation. | Designed to run without internet access in air-gapped environments. |
| License behavior | Activates via LocalStack licensing endpoints. If unreachable, LocalStack attempts offline activation and requires re-activation every 24 hours. | Includes an embedded keypair/decryption key so LocalStack can run without contacting the license server. |
| Service dependencies | Some services may download dependencies on demand during runtime. | Service dependencies are pre-baked into the image for offline usage. |
| Cloud Pods | Platform remote integration can sync state with your LocalStack account. | LocalStack Platform remotes are typically unavailable in fully air-gapped setups. Use a self-managed S3 remote when available in your environment. |
| Ephemeral instances | Available via Web App/CLI as cloud-hosted LocalStack runtimes. | Not available in air-gapped/offline deployments because they run on LocalStack Cloud infrastructure. |
| Telemetry | Can send usage events for features such as Stack Insights. | Keep event reporting disabled (DISABLE_EVENTS=1) for strict offline setups. |
What communicates with LocalStack Cloud?
Section titled “What communicates with LocalStack Cloud?”The main integrations are:
- License activation: The standard image performs online activation using your
LOCALSTACK_AUTH_TOKEN. See Auth Token for activation behavior and fallbacks. - Event reporting (telemetry): Used for Stack Insights and related usage analytics. You can disable this via
DISABLE_EVENTS=1. - Cloud Pods (platform remote): Saving/loading pods against the default platform remote uses LocalStack-managed infrastructure. See Cloud Pods for where that data is held. For stricter data residency, consider other remote storage options.
- Ephemeral instances: These are managed cloud instances and therefore require connectivity to LocalStack Cloud services.
Recommended setup for offline environments
Section titled “Recommended setup for offline environments”- Use the offline Enterprise image when no outbound connectivity is permitted.
- Keep
DISABLE_EVENTS=1to prevent event reporting. - Prefer local persistence or self-managed S3 remotes instead of platform remotes.
- Do not rely on Ephemeral Instances in fully isolated networks; run LocalStack directly in your controlled environment instead.
Resolve localhost.localstack.cloud without upstream DNS
Section titled “Resolve localhost.localstack.cloud without upstream DNS”In a fully air-gapped environment, LocalStack cannot reach an upstream DNS resolver and does not start its DNS server.
Services inside the LocalStack container that connect to localhost.localstack.cloud can therefore hang because the name does not resolve.
Add 127.0.0.1 localhost.localstack.cloud to the container’s /etc/hosts file before LocalStack starts.
Choose one of the following options:
-
Add
--add-host localhost.localstack.cloud:127.0.0.1to yourdocker runcommand. This option also works when the container runs as a non-root user. -
Add an
extra_hostsentry to your Compose configuration:compose.yaml services:localstack:image: localstack-enterpriseextra_hosts:- "localhost.localstack.cloud:127.0.0.1" -
Mount the following executable script into
/etc/localstack/init/boot.d/add-localstack-host.shas aboot.dinitialization hook. The container must run as root so the script can update/etc/hosts.add-localstack-host.sh #!/bin/shprintf '%s\n' '127.0.0.1 localhost.localstack.cloud' >> /etc/hosts