How to Configure AWS Configure List-profiles

Published
Length
3 min read

Luis Felipe Dias

All posts

The aws configure list profiles command shows all named cloud setups stored on your machine. You set it up by saving role rules in local files instead of static keys. Teams often work across many cloud accounts every day. A developer might test code in a sandbox and then check logs in production. Named profiles let you switch between these accounts fast. You do not have to type keys each time you run a tool. How aws configure list profiles works The command line tool reads two text files in

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

The aws configure list profiles command shows all named cloud setups stored on your machine. You set it up by saving role rules in local files instead of static keys.

Teams often work across many cloud accounts every day. A developer might test code in a sandbox and then check logs in production. Named profiles let you switch between these accounts fast. You do not have to type keys each time you run a tool.

How aws configure list profiles works

The command line tool reads two text files in your home folder. One file holds public settings like your region and output format. The other file holds secret keys or token caches. When you run the list command, the tool scans both files and prints each profile name.

This setup affects every human user and local script on that machine. Many software Development Kits also read these exact same files. If a profile exists in the list, any local app can use it to call cloud APIs.

Safe defaults matter when you set up local profiles. You should leave the default profile empty or point it to a test account. This simple habit stops you from running a bad command in production by mistake. You should always force users to name the target profile for real work.

You should also avoid saving static secret keys in these local files. Instead, link each named profile to a single sign-on portal or a short-term role. When a user logs in, the tool gets a temporary token that expires in a few hours.

How to check and audit local profiles

You should check your profile list often to clean up old accounts. If a profile appears twice or misses a name, check the section headers in your two files. One file uses a prefix word before the profile name, while the other file just uses the name.

AWS Config Rules + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Auditing local setups across a whole team is hard. Each laptop holds its own text files, and central security teams cannot see them. You can check cloud API logs to see which roles ran calls, but you cannot see local file health.

Static setups also leave big gaps once a user logs into a session. A valid profile gives full role permissions to the whole laptop. If malware hits the machine, it can list your profiles and use active tokens right away.

Role permissions are often too broad for daily tasks. A developer might need a role to read one database table or check one server. Once that profile is active, nothing in the local setup checks individual commands or masks private fields like emails, phone numbers, or card numbers in the output.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

Where does the tool find profile names on my computer?

The tool reads the config and credentials files inside the hidden cloud folder in your home directory. It merges the names from both files into one output list.

Why is a new profile missing from my list output?

You might have saved the file in the wrong folder or used bad header formatting. Check that the config file uses the profile prefix word for non-default names.

Does listing profiles show my secret keys on the screen?

No, the list command only prints the profile names found in your files. It does not print secret keys, regions, or account numbers to your screen.

The query runs. The emails stay hidden.