aws-profile-management

Verify the active AWS profile before Terraform or AWS CLI operations.

14|3|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/lgbarn/devops-skills --skill aws-profile-management
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: aws-profile-management
Source: https://github.com/lgbarn/devops-skills/tree/main/skills/aws-profile-management
Command: npx skills add https://github.com/lgbarn/devops-skills --skill aws-profile-management

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Credential mistakes are a leading cause of infrastructure incidents. This skill ensures the correct AWS profile is active before any Terraform or AWS operation.

Core Features & Use Cases

  • Pre-operation identity verification against environment mappings to prevent cross-environment mistakes.
  • Profile switching via named profiles, AWS SSO, or assume-role to maintain safe workflows.
  • Integration with infrastructure workflows to guarantee safe and auditable deployments.

Quick Start

Verify the active AWS profile before running any Terraform or AWS operation.

Frequently Asked Questions about aws-profile-management

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify my active AWS profile before running Terraform commands?▼

Verify your active AWS profile before running Terraform by performing pre-operation identity checks against environment mappings. This prevents cross-environment infrastructure mistakes by ensuring the correct account and role are active.

What is the best way to prevent cross-environment AWS CLI mistakes?▼

The best way to prevent cross-environment AWS CLI mistakes is to verify credentials before every operation. This ensures the correct dev, staging, or prod account is active before executing commands.

How do I switch AWS profiles using SSO or assume-role for deployments?▼

Switch AWS profiles using SSO or assume-role by following profile-switching guidance. This maintains safe workflows across dev, staging, and prod environments by ensuring the correct role is assumed.

Does this AWS profile verification work with named profiles and SSO?▼

Yes, this AWS profile verification works with named profiles, AWS SSO, and assume-role scenarios. It integrates with infrastructure workflows to guarantee safe and auditable deployments across environments.

Why does my Terraform apply target the wrong AWS environment?▼

Your Terraform apply targets the wrong AWS environment because credentials were not verified before the operation. Pre-operation identity verification against environment mappings prevents these cross-environment mistakes.