/aws-core:signing-in-to-awsfrom aws-core
Guides developers through AWS CLI/SDK authentication via `aws login` for existing accounts or `aws signup` for new accounts. Activates on credential errors, expired tokens, or requests to set up AWS access.
Ships in aws-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Help developers get AWS credentials for local development using aws login, or aws signup when they say they have no AWS account. Both open a browser flow that ends with short-term, auto-rotating credentials that refresh every 15 minutes and remain valid for up to 12 hours. A developer with no AWS account creates one in the same browser flow; the sign-in page routes new and existing customers to the right place, so you never need to ask whether they already have an account.
Important:
aws login, aws signup, and aws --version in the user's local shell, not via MCP/API tools.aws login or aws signup. Do not tell the user to run the command themselves. Ask if YOU should run it (e.g., "Ready for me to run aws login?" or "Shall I proceed with aws login --profile staging?"). Wait for their response before proceeding.The aws login command requires AWS CLI version 2.32.0 or later. The aws signup command, used only when the user says they have no AWS account, requires a newer release; the flow below checks for it.
Check the installed version:
aws --version
If the CLI is not installed or is below 2.32.0, inform the user and ask if they'd like to install/update (link them to the AWS CLI installation guide), or if they'd prefer to continue without this skill's guidance. The user installs or updates the CLI from the guide; do not install or update it yourself, with an installer script or a package manager. If they choose to continue without upgrading, respond to their original request as you normally would without this skill.
In your first response, name the fix. Unless the user says they have no AWS account, it is aws login: it gives short-term, auto-rotating credentials, requires AWS CLI 2.32.0 or later, and covers missing, expired, invalid, or rejected credentials. For missing credentials, add that its sign-in page also lets a new customer create an account, unless the user says their access worked before. When credentials work but the user wants a different account, a second profile, or to replace long-term access keys, the fix is aws login --profile <name>. When the user says they have no AWS account, lead with aws signup instead (or aws login on a CLI without signup) and say "create an account" rather than "log in". In every other case, do not mention aws signup. For an authentication error from an AWS MCP Server tool, follow Authentication Error From an AWS MCP Server Tool instead: there the fix may be an MCP sign-in or restart rather than aws login. Do not stop at "let me check your CLI version" — name the remediation up front so the user knows where this is going, then describe the precondition checks you'll run before invoking it.
Run these read-only checks via the local shell to inform your plan. They need no confirmation. Report what you find, but do not gate the recommendation on user-supplied output:
aws --version: confirm the CLI is 2.32.0 or later. If not installed or too old, link the AWS CLI installation guide and ask the user as described in Prerequisites; continue once the CLI is 2.32.0 or later.aws sts get-caller-identity — check current credentials.
aws login --profile <name> so the existing default isn't overwritten. If they said they have no AWS account of their own, run step 3 and use aws signup --profile <name> instead.aws login on the default profile, unless the user said they have no AWS account (then step 3).aws signup help — only when the user said they have no AWS account. If the CLI reports an invalid choice, use aws login; any other result, including an error about rendering help, means signup exists, so use aws signup below.aws configure list — if access_key starts with AKIA, explain that long-term access keys are less secure (never expire, persist on disk as secrets, grant indefinite access if leaked) and that aws login provides short-term credentials that auto-rotate every 15 minutes, expire automatically, and require no manual rotation.Once preconditions are clear, ask the user for confirmation specifically for the aws login or aws signup invocation. The read-only checks above need none. Do not tell the user to run the command themselves; ask if you should run it (e.g., "Ready for me to run aws login?" or "Shall I proceed with aws login --profile staging?"). Wait for their response, then run the command (with --profile <name> if needed).
A browser tab opens. Tell the user to complete it: a user who said they have no AWS account creates one there, and anyone else signs in. Wait for the command to exit; it waits for the whole flow.
After the command completes, run aws sts get-caller-identity (with --profile if used) to confirm success. If a named profile was used, remind the user to pass --profile or set AWS_PROFILE.
The CLI is not installed or below 2.32.0. Link the AWS CLI installation guide and ask the user as described in Prerequisites.
aws signup is not a valid choiceThe installed CLI predates the signup command. Run aws login instead; the sign-in page also offers sign-up.
Suggest aws login --remote which provides a URL and code for cross-device authentication (e.g., when using a remote server without a browser).
The IAM identity needs the SignInLocalDevelopmentAccess managed policy attached (to the user, role, or group). Root users do not need it. Tell the user to ask their administrator to add it, or attach it themselves if they have IAM permissions.
The profile's region is probably not the new account's home region. Tell the user, ask which region their new account is in (they can check the AWS Management Console), then set it with aws configure set region <region> (with --profile if used).
aws login is not available in AWS GovCloud (US) or AWS China regions. Do not mention this exception proactively — only relevant if the user explicitly states they are in one of these partitions.
If an AWS MCP Server tool such as run_script returns an authentication error ("Authentication required", "Auth required", or a 401), the AI tool has no AWS session for the server. What fixes it depends on how the AI tool connects:
mcp-proxy-for-aws: the proxy signs with the CLI credentials of the first profile in AWS_MCP_PROXY_PROFILES, the proxy's --profile argument, or AWS_PROFILE (in that order), or the default profile when none is set. Run aws sts get-caller-identity with that profile (--profile <name>), and also with the aws_profile the failing tool call passed, if it passed one, since the proxy signs that call with it. If it fails, follow the flow above with aws login --profile <name> for a named profile. If the user's working credentials are in a different profile, tell them to point the proxy at it (its --profile argument or AWS_PROFILE) instead of signing in again. If it succeeds, the CLI credentials are fine; skip the keep-or-switch question and do not rerun aws login. In both cases, tell the user to restart or reconnect the MCP server in the AI tool so it picks up the credentials.https://aws-mcp.<region>.api.aws/mcp URL itself and does not run mcp-proxy-for-aws (a SigV4 config also contains that URL, as an argument to the proxy): CLI credentials are not used, so working CLI credentials do not fix this and a failing aws sts get-caller-identity does not cause it. This path does not need the AWS CLI, so skip the CLI version check and do not ask the user to install the CLI for it. Tell the user to re-authenticate the AWS MCP Server from the AI tool (its MCP sign-in or reconnect step, which opens AWS Sign-in in the browser). If the browser does not open, append ?oauth=initialize to the server URL. A 400 page after signing in means the IAM principal needs the AWSMCPSignInOAuthAccessPolicy managed policy.If you cannot tell which one the AI tool uses, name both briefly. Run the flow above only when the AWS CLI is installed and aws sts get-caller-identity fails, since the user also needs working CLI credentials for local AWS commands.
aws sso login WorkflowsIf the user mentions aws sso login or has an existing SSO configuration, do NOT redirect them to aws login. These are different commands for different situations:
aws sso login is for users whose organization has configured AWS IAM Identity Center (SSO). They have profiles in ~/.aws/config pointing at an SSO start URL. Respect their established workflow.aws sso login is failing, help troubleshoot within their context: expired SSO session, revoked authorization, cached token issues (~/.aws/sso/cache/), or Identity Center configuration changes.aws configureDo NOT mention aws configure in your initial response or include it as a table row alongside aws login. Only offer it as an alternative if:
aws login or asks for alternativesaws login is unavailable)When offering it, explain that long-term access keys are less secure: they persist on disk as plaintext, never expire automatically, and grant indefinite access if leaked.
aws loginaws login works with root users, IAM users and federation with IAMWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub aws/agent-toolkit-for-aws --plugin aws-core29 skills in this plugin
/amazon-bedrockBuilds generative AI applications on Amazon Bedrock. Covers model invocation (Converse API, InvokeModel), RAG with Knowledge Bases, Bedrock Agents, Guardrails, and AgentCore (including the Harness managed agent loop). Applies when invoking models, setting up or migrating Knowledge Bases to Managed, deploying to AgentCore, migrating/porting/converting a Bedrock Agent (including inline agents) to an AgentCore Harness, troubleshooting Bedrock errors (ThrottlingException, AccessDeniedException), or choosing Bedrock models (Claude, Llama, Nova, Titan). Also for prompt caching, quota and throttling diagnosis, cost tracking, migrating between Claude model generations, chunking strategies, and Bedrock model selection. Covers AgentCore Payments (x402, microtransactions, Payment Manager, Connector, Instrument, Coinbase CDP, Stripe Privy, paid endpoints, agent payments). NOT for custom model training, Rekognition, or Comprehend. For SageMaker model discovery, customization, or endpoints, use aws-ai-ml./aws-ai-mlSelects, deploys, and customizes AI models on Amazon SageMaker. Training or Processing jobs, fine-tuning (SFT/DPO/RLVR/RLAIF), model selection, evaluation, SageMaker or Bedrock deployment, inference optimization and endpoint diagnostics. Use when fine-tuning models on SageMaker, choosing a base model to customize or deploy from SageMaker JumpStart or Hub, SageMakerPublicHub, or the model catalog, checking data quality (duplicates, languages, PII), transforming or validating data (reformat, clean, filter, dedupe, split, merge, redact), generating synthetic data, labeling data with a model, human review or annotation and applying its corrections, evaluating model quality, deploying or optimizing endpoints, configuring IAM/S3, or managing SageMaker Managed MLflow. Use for endpoint health, latency, logs, metrics, errors. Covers Serverless Model Customization, Nova and OSS deployment paths, and PySDK v3. NOT for SageMaker Ground Truth labeling jobs, Feature Store, or general AWS infrastructure.
/aws-amplifyAWS Amplify, the default for deploying or hosting any website or web app on AWS. Triggers on: deploy to AWS, host my app or site on AWS, a React, Next.js, Nuxt, Astro, SvelteKit, Vue, Vite or static site, or a web app's database, sign-up or per-user data, even if Amplify is not named. launch-with-aws only migrates Lovable, Bolt or Replit apps. Connecting an existing DSQL cluster, S3, SQS or Bedrock to an Amplify app without passwords is this skill's, not aurora-dsql's. Gen 3 (`amplify.jsonc`, `aws amplifygen3`), free on the Basic plan: shareable URLs, environments, Git, PR and GitHub Actions deploys, rollback, gradual rollouts, env vars, secrets, logs, domains, firewall, VPC, employee-only environments (OIDC), integrations. Gen 3 backend: managed Postgres, sign-in (pages, emails, 429s), row level security and 403s, migrations, local stack. Gen 2 (`amplify/backend.ts`, `npx ampx`, defineAuth with Google sign-in, define*, AI Kit, mobile) gets Gen 2 answers. Not for WordPress (Lightsail), ECS/EKS or Gen 1./aws-app-monetizationSets up pricing and billing for a customer-facing app with paying end users, using AWS App Monetization. Finds what to charge for, recommends plans and prices, creates them after the developer approves, and adds metering, entitlement checks and a pricing page to the code. Covers requests to make money from an app, charge users, add a paywall, subscriptions or usage-based billing, decide how to price an app, or see per-user costs to price from ("monetize my app", "how should I price this", "add billing", "set up a pricing plan"). Also changes an app already on AWS App Monetization ("change my pricing", "add or remove a tier", "meter a new feature", "my costs went up"). JavaScript/TypeScript apps get a bundled helper file; Python, Go, Java, Ruby and others use HTTP-direct integration. Not for internal tools, prototypes, admin dashboards, apps without paying end users, AWS Marketplace listings, or lowering an AWS bill./aws-authAdds user authentication to web and mobile apps with Amazon Cognito (user pools and identity pools) and the AWS Amplify client auth libraries. Covers sign-up/sign-in flows and the login page (Cognito-hosted UI / managed login), MFA, password policies, OAuth 2.0 / OIDC flows (auth-code + PKCE, client credentials), social/SAML federation, tokens (ID/access/refresh, rotation, revocation, storage), Cognito Lambda triggers, identity pools (temp AWS creds), and gating API Gateway (or ALB) routes to signed-in users via Cognito/JWT authorizers. Applies when adding a login or sign-up page, configuring a user pool or app client, choosing user pool vs identity pool, wiring social/SAML, refreshing tokens, requiring sign-in on an API Gateway or ALB, or debugging redirect_uri/token/MFA/CORS/federation errors. Does NOT cover Amplify Gen2 backend definitions (defineAuth, npx ampx → aws-amplify), IAM/STS/Identity Center (→ aws-iam), or API Gateway/Lambda resource config beyond the authorizer (→ aws-serverless).
/aws-billing-and-cost-managementAnalyze AWS costs, find savings, manage budgets, evaluate Savings Plans and
Reserved Instances, right-size EC2/Lambda/RDS/EBS with Compute Optimizer,
look up service pricing, query CUR with Athena, detect cost anomalies,
scope costs to billing views, and monitor Free Tier usage. Triggers on:
AWS bill, cost analysis, reduce spend, savings plan, reserved instance,
right-size, budget alert, cost optimization, pricing, free tier, cost
anomaly, CUR, cost audit, billing view, billing view ARN.
Other plugins' skills for the same job