Devcontainer Amazon Linux Workspace
Amazon Linux-based devcontainer template for AWS-compatible development environments.
What it is
An Amazon Linux-based devcontainer template for creating AWS-compatible development environments. Ideal for teams deploying on Amazon Linux who want parity between development and production.
Available as source code.
Motivation
When the production environment is Amazon Linux, developing on Ubuntu or macOS introduces subtle discrepancies: glibc versions, system paths, available packages. This template eliminates those differences by using the same base as production.
Contents
- Base image: Amazon Linux 2023 with development tools
- AWS CLI: pre-installed and configured
- VS Code extensions: configured for AWS development
- Dev/prod parity: same distribution as deployment environments
Lessons learned
Parity between development and production reduces "works on my machine" bugs. Amazon Linux as a devcontainer base is viable but requires installing more tools manually than Debian-based images.
References
- GitHub Repository — jonmatum, 2024. Source code.
Related content
- Dev Containers
Specification for defining reproducible development environments in containers, eliminating 'works on my machine' problems and accelerating onboarding.
- Local Development
Practices and tools for creating productive development environments on the developer's machine, replicating production as closely as possible.