AWS Builder Center
5 Costly AWS Beginner Mistakes (and How to Avoid Them)

5 Costly AWS Beginner Mistakes (and How to Avoid Them)

What EC2, S3, and IAM teach you the hard way, so you don’t have to learn it that way. Most AWS horror stories, like the surprise bill, the exposed bucket, or the leaked access key, don’t come from advanced architecture. They come from small defaults and habits in the three services every beginner touches first: EC2, S3, and IAM. The pattern behind them is simple. AWS gives you powerful building blocks, but it assumes you’ll configure them deliberately.

Here are five mistakes worth avoiding from day one.

1. Using the Root Account for Everyday Work

When you create an AWS account, you start with a root user that has unrestricted access to everything, including billing and account closure. It can’t be limited by IAM policies.
Why it matters: if root credentials leak, there is no safety net.
Do this instead:
  • Enable MFA on the root user immediately.
  • Create an IAM user (or, better, use IAM Identity Center) for daily tasks.
  • Keep the root user for the few tasks that truly require it.
Insight: treat root like the master key to a building. You should know where it is, not carry it around.

2. Over-Permissive IAM Policies

When something fails with “access denied,” the quick fix is to attach  AdministratorAccess  or use  "Action": "*"  in a policy. It works, and it quietly turns a small mistake into a large risk.
Do this instead:
  • Start with the minimum permissions and add only what’s needed (least privilege).
  • Use IAM Access Analyzer and the policy simulator to review and test what a policy actually allows.
  • Use roles with temporary credentials rather than long-lived access keys.
Insight: least privilege feels slower in week one and saves you in week fifty. The access you never granted can’t be misused.

3. Hard-Coding Access Keys on EC2 Instances

A common beginner pattern is pasting an access key and secret into application code or a config file on an instance so it can reach S3. Those keys get committed to Git, copied into screenshots, and forgotten.
Do this instead:
  • Attach an IAM role to the EC2 instance (an instance profile). The instance receives temporary, automatically rotated credentials.
  • Scope the role to exactly the bucket and actions it needs.
  • Never commit credentials to a repository, and enable secret scanning where available.
Insight: the most secure credential is the one you never had to store.

4. Leaving Doors Open: Security Groups and S3 Access

Two settings cause a large share of exposure:
  • Security groups: opening SSH (port 22) or RDP to  0.0.0.0/0  exposes your instance to the entire internet.
  • S3 buckets: new buckets block public access by default, but people turn it off “just to make it work” and forget to turn it back on.
Do this instead:
  • Restrict inbound rules to your own IP address, or avoid open SSH altogether by using AWS Systems Manager Session Manager.
  • Keep S3 Block Public Access on. For public content like a website, serve it through Amazon CloudFront rather than exposing the bucket directly.
  • Periodically review your setup with the tools AWS provides, such as Trusted Advisor and Security Hub.
Insight: “It works” and “it’s secure” are different tests. Run both.

5. Forgetting That Idle Resources Still Cost Money

Cloud billing is usage-based, and usage doesn’t always stop when you think it has.
  • A stopped EC2 instance no longer charges for compute, but its attached EBS volumes still do.
  • Extra EBS volumes can outlive a terminated instance unless “delete on termination” is set.
  • Public IPv4 addresses carry an hourly charge, whether or not they’re attached to something busy.
  • S3 storage grows quietly, especially with versioning enabled and no lifecycle rules.
Do this instead:
  • Set up AWS Budgets and billing alerts on day one.
  • Review the Billing and Cost Management dashboard and Cost Explorer regularly.
  • Add S3 lifecycle rules to move old data to cheaper storage classes or expire it.
  • Terminate what you no longer need, and verify that attached volumes and IP addresses are gone too.
Insight: build a cleanup habit as seriously as a build habit. Free tier terms change over time, so check the current rules for your account.

The Bigger Lesson: Shared Responsibility

All five mistakes connect to one idea, the AWS Shared Responsibility Model. AWS secures the cloud itself: the data centers, hardware, and core infrastructure. You secure what you put in the cloud: your configurations, permissions, data, and access. EC2, S3, and IAM are where that responsibility becomes concrete, because every setting you choose is yours to own.

A Quick Beginner Checklist

  • MFA enabled on root, and root not used day to day
  • IAM roles instead of hard-coded access keys
  • Least-privilege policies, reviewed with Access Analyzer
  • No  0.0.0.0/0  on SSH/RDP; S3 Block Public Access on
  • Budgets and billing alerts configured
  • Unused instances, volumes, and IPs cleaned up

Keep Learning

The best way to internalize these habits is hands-on practice. Pair this article with the AWS Cloud Practitioner Essentials course and labs on AWS Skill Builder, then deliberately try to break and fix things in a sandbox account.
Which of these mistakes have you run into, or almost made? Share your story in the comments to help other learners.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article