Varnish Cache (Hardened) on Amazon Linux 2023
Varnish Cache HTTP accelerator on Amazon Linux 2023, security-hardened for production: minimal package set, SSH key-only access, IMDSv2-only, per-instance admin secret, and continuously patched images. This product has charges associated with it for image hardening, maintenance, and support.
Why this image
- Production-ready: systemd-managed Varnish on port 80 with 256 MB malloc cache; point default.vcl at your origin and restart.
- Security-hardened at build time: minimal packages, key-only SSH, IMDSv2-only, per-instance admin secret, admin interface on localhost only.
- Continuously patched: rebuilt, vulnerability-scanned, and republished on a regular cadence.
About
Varnish Cache (Hardened) on Amazon Linux 2023 is a production-ready, security-hardened image of the Varnish Cache HTTP accelerator, maintained and supported by Derek Coleman & Associates Inc.
This is repackaged open-source software. Varnish Cache is developed by the Varnish Cache project and is distributed under a BSD 2-Clause license. Varnish is a trademark of Varnish Software AB; this listing is not endorsed by or affiliated with Varnish Software. This product bundles unmodified upstream Varnish Cache on a hardened Amazon Linux 2023 base; the charges associated with this listing are for image hardening, continuous patching, vulnerability scanning, and business-day support - not for the underlying open-source software, which remains free.
Hardening baseline: minimal package footprint, SSH key-only access (password authentication disabled), IMDSv2 enforced, the varnishadm management secret generated per instance on first boot (never baked into the image), admin interface bound to localhost, host firewall exposing only the HTTP port, and no default credentials anywhere. Images are rebuilt, scanned for HIGH and CRITICAL vulnerabilities, and republished on a regular cadence so that new launches start current. Varnish listens on port 80 with the backend defined in /etc/varnish/default.vcl (placeholder points at 127.0.0.1:8080 until you configure your origin).
Pricing (hourly usage, AWS Marketplace)
| Instance type | Size | Software price |
|---|---|---|
| c7i.xlarge | 4 vCPU / 8 GiB | $0.46/hr |
| c7i.2xlarge | 8 vCPU / 16 GiB | $0.92/hr |
| c7i.4xlarge | 16 vCPU / 32 GiB | $1.84/hr |
Recommended: c7i.xlarge. AWS infrastructure charges are separate and billed by AWS. Charges stop when instances are terminated. No subscription, no minimum.
Getting started
1. Launch from AWS Marketplace (1-Click or EC2 console). 2. Connect via SSH with your EC2 key pair: ssh -i <key> ec2-user@<public-ip>. Root login is disabled; use sudo. 3. Varnish listens on port 80; edit /etc/varnish/default.vcl to point the backend at your origin server, then: sudo systemctl restart varnish. 4. Verify: curl -I http://<public-ip> returns a response, or: sudo systemctl status varnish. 5. Sensitive data: the only secret is the per-instance varnishadm admin secret at /etc/varnish/secret (generated on first boot by varnish-firstboot.service; never shipped in the image; the admin CLI listens on localhost:6082 only). Logs under /var/log may contain client IPs - treat as personal data. 6. Backup: snapshot the EBS volume (it contains all configuration and data). 7. Resources: a single instance uses 1 EC2 instance and 1 gp3 EBS volume; no other AWS resources are created. 8. Support: support@dcassociatesgroup.com.
Support
Email support@dcassociatesgroup.com — business-day response. Covers image operation, the hardening baseline, and launch issues. See support.