Aws cli list profiles. Jul 10, 2021 · What is AWS CLI? “The AWS Command Line Interface (AWS CLI) is an open source tool that enables you to interact with AWS services using commands in your command-line shell. ” Knowing how to interact with the AWS Services via the Console or APIs is insufficient and learning how to leverage CLI is an important aspect of AWS, especially for developers. What is AWS CLI? The AWS CLI is a powerful tool that allows users to interact with various AWS services from the command line. Delete the [default] section or any other named profile section that contains your credentials. To list your AWS CLI profiles you open your terminal and type this command: aws configure list-profiles You’re terminal will give you output similar to the Jul 4, 2025 · aws configure list # Show current profile configuration # Switch between profiles export AWS_PROFILE=profile-name # Set profile for current session aws configure list # Verify the switch worked # Use a specific profile for one command (without switching) Jun 20, 2019 · for AWS CLI 2 there is the command aws configure list-profiles for AWS CLI 1 there is not a command, but if you type aws configure list --profile and then press tab, it will give you the names of all the profiles, then you can use the above command to inspect each profile configuration. Feb 27, 2026 · Let’s set up our CLI to interact with AWS. See ‘aws help’ for descriptions of global parameters. Sample commands, required parameters, and usage reference. If the AWS CLI configuration isn’t set to the default values, then make sure to explicitly set some environment variables tp be picked up by the tools cmd such as: AWS_PROFILE, AWS_DEFAULT_REGION, AWS_CONFIG_FILE, AWS_SHARED_CREDENTIALS_FILE. Share solutions, influence AWS product development, and access useful content that accelerates your growth.
dzfdi ynescsk kswfvw rfqlmtl ivdv nzifwn qlog bbwne lwdyn zsa