How to Configure AWS Create Profile

Published
Length
3 min read

Luis Felipe Dias

All posts

An aws create profile setup lets developers save named account settings on their local machines. You set it up safely by linking profiles to single sign-on roles instead of static keys. Teams often work across many cloud accounts every day. A developer might test code in a sandbox and check logs in production. Without named profiles, switching between these accounts takes too much time. People end up pasting secret keys into terminal windows. That habit leads to mistakes and leaked keys. How

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.

An aws create profile setup lets developers save named account settings on their local machines. You set it up safely by linking profiles to single sign-on roles instead of static keys.

Teams often work across many cloud accounts every day. A developer might test code in a sandbox and check logs in production. Without named profiles, switching between these accounts takes too much time. People end up pasting secret keys into terminal windows. That habit leads to mistakes and leaked keys.

How an aws create profile setup works in practice

The command line tool reads two local text files in your home folder. One file holds settings like your region and output format. The other file holds secret keys if you still use them. When you run a command, you name the profile you want to use. You can also set an environment variable to pick a profile for your whole terminal session.

This setup affects human users and local scripts on a workstation. Automated servers should use attached machine roles instead of local profile files. For human users, safe defaults matter a lot. You should never put production settings in the default profile slot. Leave the default slot empty or point it to a harmless test account. That way, a command run without a profile name cannot break production data.

Modern teams pair named profiles with single sign-on and role assumption. The profile file only stores the account number, the role name, and the login portal address. When a developer starts work, they log in through their web browser. The tool fetches a short-lived token and saves it in a local cache folder. No permanent keys ever sit on the laptop disk.

How to check your setup and spot security gaps

After you set up a new profile, you should check which identity is active. Run the caller identity command to see the account number and role name. This quick check confirms that your commands will hit the right account. On the security side, admins should check cloud audit logs to review role activity. Cloud logs show when a user assumed a role and which API calls they made.

Even with single sign-on, local profiles leave big security gaps open. First, a cached token on a laptop stays valid for hours. Malware or a script on that laptop can read the cache folder and steal the token. Second, a cloud role often grants broad access to databases and servers inside the account. Once the session starts, cloud logs do not record what happens inside those databases.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

An engineer with a valid profile can connect to a database and run any query. Cloud audit logs will not show the SQL statements or the rows returned. If a table holds emails, phone numbers, or card numbers, those values come back in plain text. Data masking is needed to rewrite matched fields in results before they reach the screen. Static profile files cannot filter commands or mask sensitive columns during an active session.

Best ways to manage profiles across a growing team

Keep your team profile names clear and consistent across all laptops. Use names that match the account purpose and the permission level. For example, separate read-only profiles from admin profiles even when they target the same account. Share a clean template file in your team docs so new hires set up profiles the same way.

Ask engineers to use read-only profiles for daily log checks and status reviews. They should only switch to a write profile when they need to fix a broken resource. Also, set short session timeouts on your cloud roles. Short timeouts force users to log in again before running sensitive tasks. Finally, scan laptops from time to time to make sure no one added raw keys back into their local files.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

Where does the command line tool store profile files?

The tool stores two files inside a hidden folder in your user home directory. One file keeps general settings and role links, while the other file holds raw keys.

Why should I leave the default profile empty?

Tools use the default profile whenever you forget to name a specific profile. Leaving it empty stops you from running test commands against production accounts by mistake.

Is a single sign-on profile safer than an access key profile?

Yes, single sign-on profiles use temporary tokens that expire after a few hours. Access key profiles store permanent secrets in plain text on your hard drive.

The query runs. The emails stay hidden.