Skip to content

Build: aws-devops

aws-devops is the base stage plus an AWS layer. It has no Google Cloud SDK.

flowchart LR
  B["base"] --> L["aws-devops layer<br/>crcmod, pytest, s3cmd, boto3,<br/>cfn-lint, requests, bs4, lxml,<br/>AWS CLI v2, Session Manager plugin"]
  L --> I["aws-devops:local"]

  classDef base fill:#0891b2,stroke:#0e7490,color:#fff
  classDef aws fill:#ea7a0c,stroke:#c2410c,color:#fff
  class B base
  class L,I aws

Build

docker build --target aws-devops -t aws-devops:local .

The AWS layer has no version build arguments: the AWS CLI and Session Manager plugin always come from the latest official packages for the build architecture. The base build arguments still apply.

Verify

docker run --rm aws-devops:local bash -c '
  aws --version && session-manager-plugin --version &&
  cfn-lint --version && terragrunt --version'

Run

docker run -it --rm \
  -v "$PWD":/srv -w /srv \
  -v ~/.aws:/root/.aws \
  aws-devops:local

See Using aws-devops for everyday usage.