Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Latest commit

 

History

History
56 lines (35 loc) · 1.63 KB

File metadata and controls

56 lines (35 loc) · 1.63 KB

IMPORTANT NOTE: We're starting to migrate contents of this repo to the devcontainers org, as part of the work on the open dev container specification.

We've currently migrated the aws-cli Feature to devcontainers/features/src/aws-cli.

For more details, you can review the announcement issue.

AWS CLI Install Script

Installs the AWS CLI along with needed dependencies. Useful for base Dockerfiles that often are missing required install dependencies like gpg.

Script status: Stable

OS support: Debian 9+, Ubuntu 18.04+, and downstream distros.

Maintainer: The VS Code and GitHub Codespaces teams

Syntax

./awscli-debian.sh [Version]

Or as a feature:

"features": {
    "aws-cli": "latest"
}

Usage

Feature use

To install these capabilities in your primary dev container, reference it in devcontainer.json as follows:

"features": {
    "aws-cli": "latest"
}

If you have already built your development container, run the Rebuild Container command from the command palette (Ctrl/Cmd + Shift + P or F1) to pick up the change.

Script use

  1. Add awscli-debian.sh to .devcontainer/library-scripts

  2. Add the following to your .devcontainer/Dockerfile:

    COPY library-scripts/awscli-debian.sh /tmp/library-scripts/
    RUN bash /tmp/library-scripts/awscli-debian.sh

That's it!