home / skills / bankkroll / skills-builder / aws-cli

aws-cli skill

/skills/aws-cli

This skill helps you use the AWS CLI efficiently by providing guidance, examples, and best practices drawn from official documentation.

npx playbooks add skill bankkroll/skills-builder --skill aws-cli

Review the files below or copy the command above to add this skill to your agents.

Files (4)
SKILL.md
1.2 KB
---
name: "aws-cli"
description: "Scraped from https://docs.aws.amazon.com/cli/latest/userguide/ Source: https://docs.aws.amazon.com/cli/latest/userguide/."
---

# Aws Cli

> Official documentation: https://docs.aws.amazon.com/cli/latest/userguide/

## Overview

This skill provides comprehensive documentation for aws cli.

**Total references:** 3 files (~18,968 tokens)

## Reference Files

Load only the reference files relevant to the user's question:

- **[AWS Batch examples using AWS CLI with Bash script and more](references/general-1.md)** (~8,140 tokens)
- **[DAX examples using AWS CLI and more](references/general-2.md)** (~8,174 tokens)
- **[Storage Gateway examples using AWS CLI and more](references/general-3.md)** (~2,654 tokens)

## Usage Guidelines

1. **Identify relevant sections** - Match the user's question to the appropriate reference file(s)
2. **Load minimally** - Only read files directly relevant to the question to conserve context
3. **Cite sources** - Reference specific sections when answering
4. **Combine knowledge** - For complex questions, you may need multiple reference files

### When to use each reference:

- **General**: General documentation, overview, and getting started

Overview

This skill provides concise, practical documentation and examples for the AWS Command Line Interface (AWS CLI). It consolidates common commands, usage patterns, and example scripts across services like Batch, DAX, and Storage Gateway. The goal is to help you run, automate, and troubleshoot AWS operations from the command line quickly.

How this skill works

The skill inspects curated reference content covering AWS CLI commands, flags, input/output formats, and real-world examples. It highlights command patterns for provisioning, submitting jobs, managing caches, and interacting with storage gateways. When needed, it points to the exact example or snippet to adapt for your environment.

When to use it

  • Automating AWS operations with scripts or CI/CD pipelines
  • Running ad hoc AWS actions without a console (quick debugging or diagnostics)
  • Learning or validating CLI command syntax and options
  • Adapting real-world examples for Batch job submission, DAX operations, or Storage Gateway tasks
  • Troubleshooting command failures by comparing expected input/output patterns

Best practices

  • Use named profiles and environment variables to avoid embedding credentials in scripts
  • Validate JSON inputs with a local JSON linter before passing to aws cli --cli-input-json
  • Prefer --output json for programmatic consumption and --query to filter results client-side
  • Test commands in a safe dev account or with resource tags before running in production
  • Script idempotently: check resource existence before create/update to avoid unexpected failures

Example use cases

  • Submit and monitor AWS Batch jobs via Bash scripts with exponential backoff and status polling
  • Manage DAX clusters and cache parameters using CLI commands for scaling and maintenance
  • Create and configure Storage Gateway volumes and file shares, then mount them from on-premises clients
  • Integrate CLI calls into CI pipelines to provision temporary test environments and cleanup automatically
  • Use aws cli --query to extract specific fields for dashboards or downstream automation

FAQ

Do I need the AWS Console to use this skill?

No. The skill focuses on AWS CLI usage so you can perform most provisioning and management tasks entirely from the command line.

How do I avoid exposing credentials in scripts?

Use AWS named profiles, environment variables (AWS_PROFILE, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY), or IAM roles for EC2/CI runners instead of hard-coding keys.