TalksAWS re:Invent 2025 - Accelerate code delivery: Dev containers and Amazon Q Developer (SPS324)

AWS re:Invent 2025 - Accelerate code delivery: Dev containers and Amazon Q Developer (SPS324)

Accelerating Code Delivery: Dev Containers and Amazon Q Developer

Challenges in Software Delivery

  • 45-60% of production deployments require rework or rollbacks
  • Security misconfigurations and accidental exposure of secrets are common issues
  • Teams struggle with slow deployment cycles, infrequent deployments, and long recovery times from incidents

Achieving Elite Software Delivery Practices

  • The DORA (DevOps Research and Assessment) metrics measure key aspects of software delivery performance:
    • Change lead time: Time from commit to production (elite teams < 1 day, low performers > 1 month)
    • Deployment frequency: How often code is deployed to production (elite teams on-demand, low performers every few months)
    • Mean time to restore service: How long it takes to recover from an incident (elite teams < 1 day, low performers days to weeks)
    • Change failure rate: Percentage of deployments requiring rework or rollback (elite teams ~15%, low performers 45-60%)

Dev Containers: Enabling Consistent Development Environments

  • Dev containers provide a consistent, standardized development environment across teams
  • Key components:
    • Container runtime (Docker, Podman, etc.)
    • IDE integration (VS Code, IntelliJ, etc.)
  • Allows "shifting left" of quality and security checks into the development environment
  • Enables integration of tools like linters, formatters, and static analysis

Integrating Amazon Q Developer

  • Amazon Q Developer is an AI-powered code assistant that can provide advanced code refactoring and analysis
  • Integrating Amazon Q into the dev container setup:
    • Add the Amazon Q extension to the dev container configuration
    • Create a rules file (e.g., best practices) to provide context for Amazon Q
    • Run a post-create command to copy the rules file into the project
  • Amazon Q can then be used to automatically refactor code and enforce best practices

Modular Dev Container Configurations

  • Dev container "features" are reusable building blocks that can be shared across teams
  • Features include an install script and a configuration file
  • Allows creating a base dev container image that can be extended with additional features
  • Enables a scalable, modular approach to dev container management

Automating Dev Container Builds

  • A CI/CD pipeline can be set up to automatically build and publish dev container images
  • Uses AWS CDK to define the pipeline infrastructure as code
  • Triggers the pipeline when changes are made to the dev container configuration or feature definitions
  • Publishes the built images to Amazon ECR for easy distribution

Key Takeaways

  • Dev containers enable consistent, high-quality development environments across teams
  • Integrating Amazon Q Developer provides advanced code analysis and refactoring capabilities
  • Modular dev container features allow scaling and reuse across projects
  • Automating dev container builds through CI/CD pipelines ensures reliable, up-to-date environments

Your Digital Journey deserves a great story.

Build one with us.

Cookies Icon

These cookies are used to collect information about how you interact with this website and allow us to remember you. We use this information to improve and customize your browsing experience, as well as for analytics.

If you decline, your information won’t be tracked when you visit this website. A single cookie will be used in your browser to remember your preference.