From isengardcli-aws-auth
This skill should be used when the user asks to "run AWS commands", "deploy to AWS", "get AWS credentials", "assume an AWS role", "run npm deploy", "run CDK commands", or needs to execute commands against an AWS account using Isengard authentication. Also use when encountering AWS credential errors or needing to switch between AWS accounts.
How this skill is triggered — by the user, by Claude, or both
Slash command
/isengardcli-aws-auth:isengardcli-usageThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Isengardcli is Amazon's internal CLI tool for managing AWS account access through Isengard. It provides temporary AWS
Isengardcli is Amazon's internal CLI tool for managing AWS account access through Isengard. It provides temporary AWS credentials for accessing AWS accounts.
NEVER hardcode or assume account IDs. Always use environment variables for account selection.
| Environment | Variable | Purpose |
|---|---|---|
| Development | $DEV | Personal/development account |
| Beta | $BETA | Beta testing environment |
| Gamma | $GAMMA | Pre-production staging |
| Production | $PROD or $RELEASE | Production environment |
Always ask the user which environment if:
Example clarification:
"Which environment should I deploy to? I have these configured:
- DEV ($DEV) - Development
- GAMMA ($GAMMA) - Staging
- PROD ($PROD) - Production"
When executing commands against non-DEV accounts, output colored warnings:
For BETA/GAMMA (Yellow warning):
echo -e "\033[1;33m⚠️ WARNING: Executing against GAMMA environment ($GAMMA)\033[0m"
For PROD/RELEASE (Red warning):
echo -e "\033[1;31m🚨 PRODUCTION ALERT: Executing against PROD environment ($PROD)\033[0m"
Before running any isengardcli command against non-DEV:
# For GAMMA/BETA
echo -e "\033[1;33m⚠️ WARNING: Running against GAMMA ($GAMMA)\033[0m"
isengardcli run --account "$GAMMA" --role Admin -- <command>
# For PROD
echo -e "\033[1;31m🚨 PRODUCTION: Running against PROD ($PROD)\033[0m"
isengardcli run --account "$PROD" --role Admin -- <command>
run SubcommandThe run subcommand executes any shell command with temporary AWS credentials injected into the environment.
isengardcli run --account "$ENV_VAR" --role <ROLE_NAME> -- <command>
Key components:
--account: Use environment variable like "$DEV", "$GAMMA", "$PROD"--role: IAM role to assume (typically Admin or ReadOnly)--: Separator between isengardcli args and the command to run<command>: Any shell command that needs AWS credentialsDeploy to development:
isengardcli run --account "$DEV" --role Admin -- npm run deploy
Deploy to gamma (with warning):
echo -e "\033[1;33m⚠️ Deploying to GAMMA\033[0m"
isengardcli run --account "$GAMMA" --role Admin -- npm run deploy
Run integration tests against dev:
isengardcli run --account "$DEV" --role Admin -- npm run test:integration
Before executing, verify the environment variable is set:
# Check if variable is set
if [ -z "$DEV" ]; then
echo "Error: DEV environment variable not set"
exit 1
fi
To see current values:
echo "DEV=$DEV"
echo "GAMMA=$GAMMA"
echo "PROD=$PROD"
eval $(isengardcli credentials --account "$DEV" --role Admin --shell sh)
isengardcli webconsole --account "$DEV" --role Admin
isengardcli ls --all # List all accounts
isengardcli ls --output json # JSON output for scripting
Midway session expired. Run:
mwinit
If $DEV, $GAMMA, or $PROD is empty:
Ask the user for the account ID
Suggest they add it to their shell profile:
export DEV=123456789012
export GAMMA=234567890123
export PROD=345678901234
| Task | Command |
|---|---|
| Run in DEV | isengardcli run --account "$DEV" --role Admin -- cmd |
| Run in GAMMA | echo -e "\033[1;33m⚠️ GAMMA\033[0m" && isengardcli run --account "$GAMMA" --role Admin -- cmd |
| Run in PROD | echo -e "\033[1;31m🚨 PROD\033[0m" && isengardcli run --account "$PROD" --role Admin -- cmd |
| Check env vars | echo "DEV=$DEV GAMMA=$GAMMA PROD=$PROD" |
| Refresh Midway | mwinit |
| Environment | Color Code | Display |
|---|---|---|
| DEV | (none) | Normal output |
| BETA/GAMMA | \033[1;33m | Yellow/Orange |
| PROD/RELEASE | \033[1;31m | Red |
| Reset | \033[0m | Back to normal |
npx claudepluginhub cajias/claude-skills --plugin isengardcli-aws-authProvides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.