Sign inSign up

toolkitbox/aws-cli

By toolkitbox

Updated 23 days ago

DevOps toolkit - aws-cli client

Image
0

1.6K

toolkitbox/aws-cli repository overview

AWS CLI

GitHub Stars GitHub Issues Docker Pulls

📢 Found an issue or want to request a new tool? Open an issue on GitHub

Command line client for Amazon Web Services.

Quick Start

Docker
# Interactive mode
docker run -it --rm \
  -e AWS_ACCESS_KEY_ID=your_access_key \
  -e AWS_SECRET_ACCESS_KEY=your_secret_key \
  -e AWS_DEFAULT_REGION=eu-west-1 \
  ghcr.io/pabpereza/toolkitbox/aws-cli:latest

# Run single command
docker run --rm \
  -e AWS_ACCESS_KEY_ID=your_access_key \
  -e AWS_SECRET_ACCESS_KEY=your_secret_key \
  -e AWS_DEFAULT_REGION=eu-west-1 \
  ghcr.io/pabpereza/toolkitbox/aws-cli:latest aws s3 ls
Kubernetes
apiVersion: v1
kind: Pod
metadata:
  name: aws-cli
spec:
  containers:
  - name: aws-cli
    image: ghcr.io/pabpereza/toolkitbox/aws-cli:latest
    command: ["sleep", "infinity"]
    env:
    - name: AWS_ACCESS_KEY_ID
      valueFrom:
        secretKeyRef:
          name: aws-credentials
          key: access-key-id
    - name: AWS_SECRET_ACCESS_KEY
      valueFrom:
        secretKeyRef:
          name: aws-credentials
          key: secret-access-key
    - name: AWS_DEFAULT_REGION
      value: "eu-west-1"

Description

AWS CLI is Amazon's official tool for interacting with all AWS services from the terminal. It allows you to manage EC2, S3, Lambda, RDS resources, and over 200 AWS services.

Installation

This component installs AWS CLI v2 from the Alpine Linux repositories.

Basic Usage

Configure credentials
aws configure
List S3 buckets
aws s3 ls
List EC2 instances
aws ec2 describe-instances
Upload file to S3
aws s3 cp file.txt s3://my-bucket/
Sync directory with S3
aws s3 sync ./local-dir s3://my-bucket/remote-dir

Environment Variables

VariableDescription
AWS_ACCESS_KEY_IDAccess key ID
AWS_SECRET_ACCESS_KEYSecret access key
AWS_DEFAULT_REGIONDefault region (e.g., eu-west-1)
AWS_PROFILEConfiguration profile to use

Official Documentation

Tag summary

Content type

Image

Digest

sha256:576fc7821

Size

47.4 MB

Last updated

23 days ago

docker pull toolkitbox/aws-cli