HUB
Sign inSign up

widdix/sbx-kit-aws-developer:1

Multi-platform
Manifest digest

sha256:a7e1b7b577f3312b15fb2a34a534e1f5d52994dceadc283fbbc96d5c5fe8e87d

Last pushed

4 days by andreaswittig

Type

Sandbox Kit

Manifest digest

sha256:a7e1b7b577f3312b15fb2a34a534e1f5d52994dceadc283fbbc96d5c5fe8e87d

yaml
schemaVersion: "3"
displayName: AWS tools
author: widdix GmbH
description: AWS CLI v2 and Node.js for every sandbox, as an overlay on top of an agent workload, jq from the workload itself, and the egress to reach AWS APIs and the npm registry.
version: 1.2.0
licenses:
    - Apache-2.0
    - MIT
    - ISC
kind: mixin
provides:
    - [email protected]
    - [email protected]
requires:
    - deb/jq
capabilities:
    - type: com.docker.sandbox/network-policy@1
      config:
        runtime:
            allow:
                - '**.amazonaws.com:443'
                - '**.api.aws:443'
                - '**.amazonaws.eu:443'
                - registry.npmjs.org:443
    - type: com.docker.sandbox/git-identity@1
      optional: true
      description: Attribute commits to the user's Git identity
    - type: com.docker.sandbox/agent-context@2
      optional: true
      config:
        content: |
            ## AWS tools

            This sandbox carries these tools on PATH:

            - `aws` — AWS CLI 2.41.1, installed in `/usr/local/aws-cli`.
            - `node`, `npm`, `npx` — Node.js 24.22.3, installed in `/opt/node`.
              `npm install -g` writes to the agent-owned prefix in `$NPM_CONFIG_PREFIX`.
            - `jq` — shipped by the base image.

            Do not install these again with apt, nvm or an installer script.

            AWS access needs no setup. A broker on the host hands over the AWS
            profiles the user assigned to this sandbox: `AWS_CONFIG_FILE` points to
            `/mnt/aws-credentials/aws-config`, which defines them. Select one with
            `AWS_PROFILE`. Each profile has the region it has on the host, if
            any; set `AWS_REGION` or pass `--region` to use another. The
            credentials are temporary; the broker replaces them before they
            expire, and the AWS CLI and SDKs fetch them through
            `credential_process`.

            To find the profile for an AWS account ID, read the file with
            `cat "$AWS_CONFIG_FILE"`: every profile states its account as
            `aws_account_id`. The file lists all profiles you can use, so an
            account that does not appear there is out of reach.

            If a profile has no credentials, `aws sts get-caller-identity` says
            why, for example that the SSO session on the host has expired. If no
            profile is defined at all, the broker is not running or its directory
            is not mounted. None of this can be fixed inside the sandbox, and
            `aws sso login` does not work here. Tell the user what is wrong
            instead of searching for other credentials.
args:
    awsCliVersion:
        default: 2.41.1
        description: AWS CLI v2 release to install
        pattern: ^2\.[0-9]+\.[0-9]+$
        buildArg: AWS_CLI_VERSION
    nodeVersion:
        default: 24.22.3
        description: Node.js release to install
        pattern: ^[0-9]+\.[0-9]+\.[0-9]+$
        buildArg: NODE_VERSION