Independent senior database engineering · Pittsburgh, PAsbajwa@bajwaconsulting.com

Get Started with AWS: Free Account, Sign-In, S3 and EC2

Create a free AWS account, sign in the safe way, and learn the two services every DBA uses first: Amazon S3 for storage and Amazon EC2 for servers.

Every cloud journey starts with the same three questions: how do I get an account without a surprise bill, how do I log in safely, and what are all these services? This tutorial answers them in order. By the end you will have a secured AWS account, a budget alert, a storage bucket with a file in it, and a running Linux server that you then shut down cleanly.

It takes about an hour. Everything here fits inside the free credits that new accounts receive.

How the AWS Free Tier works

AWS changed its Free Tier for accounts created on or after July 15, 2025. The old "12 months free" model has been replaced by credits:

  • $100 in credits as soon as you sign up.
  • Up to $100 more, $20 for each of five starter activities: launching an EC2 instance, creating an RDS database, building a Lambda function, trying a model in the Amazon Bedrock playground, and setting up a budget. You find them in the Explore AWS panel on the console home page.
  • 30+ always-free services with monthly allowances that never expire.

When you sign up you choose a plan:

Free planPaid plan
CreditsUp to $200Up to $200
ChargesNone, unless you upgradeUsage beyond your credits is billed at normal prices
How long6 months, or until the credits are used up, whichever comes firstNo end date
ServicesA selected list of servicesAll AWS services
Best forLearning and labs, like this tutorialReal projects that will grow
Choose the Free plan to learn.

On the Free plan you are not charged at all unless you upgrade, so a forgotten server cannot run up a bill. You can upgrade to the Paid plan later and keep your remaining credits. A payment card is still required at sign-up with either plan.

The credits and plans are only for brand-new AWS customers. If you have had an AWS account before, you are not eligible.

Step 1: Create your AWS account

You need an email address that you have not used with AWS before, a phone that can receive a text or call, and a credit or debit card.

  1. Go to aws.amazon.com/free and choose Create a free account. You can sign up with an email address, or with an existing Google, GitHub, Apple or Amazon login.
  2. Enter your root user email address and an AWS account name, for example sandeep-lab. Use an email you will keep for years. For a business, use a shared address such as aws@yourcompany.com, not a personal inbox.
  3. Type in the verification code that AWS emails you, then set a strong root password and store it in a password manager.
  4. Fill in your contact details and choose Personal or Business.
  5. Add your payment card. AWS may place a small temporary hold to confirm the card is valid.
  6. Confirm your phone number with the code sent by text or voice call.
  7. Choose your account plan: Free plan for this tutorial.
  8. Leave support on the free Basic support level and finish.

Activation is usually quick, but it can take a few minutes. You will get a welcome email when the account is ready.

Step 2: Sign in: root user and IAM user

AWS has two kinds of sign-in, and knowing the difference is the single most important security lesson in AWS.

Root userIAM user
What it isThe email and password you signed up withA named login you create inside the account
PowerEverything, including closing the account and changing billingOnly the permissions you give it
Use it forA handful of account-level tasks, then lock it awayEveryday work
Signs in withEmail addressAccount ID or alias, user name and password

For your first sign-in, use the root user:

  1. Open console.aws.amazon.com.
  2. Choose Root user, enter your email address, then your password.
  3. You land on Console Home. The search bar at the top finds any service; the Region menu is at the top right; your account name and ID are in the menu next to it.

Think of the root user like the SYS account in Oracle: it can do anything, so you do not run day-to-day work with it. The next step creates your everyday login.

Step 3: Secure the account and set a budget

Turn on MFA for the root user

  1. In the account menu at the top right, choose Security credentials.
  2. Under Multi-factor authentication (MFA), choose Assign MFA device.
  3. Pick an authenticator app (Google Authenticator, Microsoft Authenticator, Authy) or a passkey or security key, and follow the prompts.

Create an admin IAM user for daily work

  1. Search for IAM and open it. Choose Users, then Create user.
  2. User name: admin. Tick Provide user access to the AWS Management Console and set a password.
  3. On the permissions page choose Attach policies directly and select AdministratorAccess.
  4. Create the user and copy the console sign-in URL. It looks like https://123456789012.signin.aws.amazon.com/console.
  5. Sign out, sign back in through that URL as admin, and add MFA to this user too (IAM → Users → admin → Security credentials).
Tip: in IAM → Dashboard you can create an account alias, such as sandeep-lab, so the sign-in URL becomes https://sandeep-lab.signin.aws.amazon.com/console. Bookmark it. Companies with many accounts usually use IAM Identity Center instead of IAM users, but for a personal lab an IAM user is the simplest start.

Set a budget alert (and earn $20)

  1. Search for Billing and Cost Management, open Budgets and choose Create budget.
  2. Choose Use a template → Monthly cost budget.
  3. Set the amount to something small, for example $5, enter your email, and create it.

AWS now emails you when spending passes the limit. Completing this counts as one of the five activities, so check Billing → Credits to see your extra $20. The same page shows how many credits you have left and when they expire.

Step 4: Pick a Region

AWS runs data centres in Regions around the world, such as us-east-1 (N. Virginia) and us-east-2 (Ohio). Almost everything you create lives in one Region. Choose the Region closest to you from the menu at the top right and stay in it for this tutorial.

"Where did my server go?" If something you created seems to have vanished, check the Region menu first. It is still there, just in the Region you were using when you created it.

Step 5: Amazon S3 explained

Amazon S3 (Simple Storage Service) stores files, called objects, in containers called buckets. It is not a disk you mount on a server; you put and get whole files over HTTPS. It is extremely durable, practically unlimited in size, and you pay only for what you store and transfer.

Region: us-east-2 Bucket: sandeep-lab-backups-2026 rman/full_01.bkp datapump/shop_01.dmp notes/readme.txt
TermMeaning
BucketA container for objects. Its name must be unique across all of AWS, for example sandeep-lab-backups-2026.
ObjectAny file: a dump file, an RMAN backup piece, a log, an image.
KeyThe object's full name. datapump/shop_01.dmp looks like a folder path, but S3 is flat: "folders" are just part of the key.
Storage classPrice versus access speed. Standard for active data; Standard-IA and Glacier classes for backups you rarely read.
Block Public AccessA setting, on by default, that keeps buckets private. Leave it on.

Why DBAs care: S3 is where you park RMAN backups and Data Pump dump files, move data between servers and Regions, and feed services such as Amazon RDS, which can import backups straight from S3.

Hands-on: create a bucket and upload a file

  1. Search for S3 and choose Create bucket.
  2. Enter a unique name such as yourname-lab-2026 (lowercase letters, numbers and hyphens only).
  3. Keep Block all public access ticked and the other defaults, then choose Create bucket.
  4. Open the bucket, choose Upload, add any small text file, and upload it.
  5. Click the file to see its properties: key, size, storage class and its S3 URI, such as s3://yourname-lab-2026/readme.txt.

The same thing from the command line

Open AWS CloudShell from the terminal icon at the top of the console. It is a browser-based Linux shell with the AWS CLI already signed in as you, so there is nothing to install or configure.

# create a bucket (the name must be globally unique)
aws s3 mb s3://yourname-lab-cli-2026

# create a file and upload it
echo "hello from CloudShell" > hello.txt
aws s3 cp hello.txt s3://yourname-lab-cli-2026/notes/hello.txt

# list buckets, then the objects in one bucket
aws s3 ls
aws s3 ls s3://yourname-lab-cli-2026 --recursive

# copy a whole folder, for example Data Pump dump files
aws s3 sync ./dumps s3://yourname-lab-cli-2026/datapump/

Step 6: Amazon EC2 explained

Amazon EC2 (Elastic Compute Cloud) gives you virtual servers, called instances, that start in a minute or two and are billed while they run. It is the closest thing in AWS to the database servers you already manage: you choose the operating system, the CPU and memory, the disks and the network rules.

EC2 instance your virtual server AMIoperating system image Instance typeCPU and memory size EBS volumethe server's disk Security groupfirewall rules
TermMeaningOn-premises equivalent
AMIAmazon Machine Image: the operating system template, such as Amazon Linux 2023, Red Hat or UbuntuYour OS build or gold image
Instance typeCPU and memory size, such as t3.micro (2 vCPU, 1 GiB) or r6i.xlarge for databasesThe server model
EBS volumeElastic Block Store: network disks attached to the instanceSAN LUNs
Security groupA firewall around the instance; you open only the ports you needFirewall rules
Key pairThe SSH key you log in withSSH keys
Stop versus terminate

Stop is like shutting a server down: you stop paying for the CPU but still pay for its disks, and you can start it again. Terminate deletes the instance, and its root disk by default. Terminate lab servers when you are done.

Hands-on: launch your first server

  1. Search for EC2 and choose Launch instance.
  2. Name: my-first-server.
  3. AMI: Amazon Linux 2023, which is marked Free tier eligible.
  4. Instance type: pick one marked Free tier eligible, usually t3.micro or t2.micro depending on the Region.
  5. Key pair: choose Create new key pair, name it lab-key, keep the .pem format, and save the downloaded file somewhere safe. AWS will not show it again.
  6. Network settings: keep Allow SSH traffic but change the source from Anywhere to My IP, so only your computer can connect.
  7. Storage: keep the default 8 GiB gp3 volume and choose Launch instance.

Launching and later terminating this instance is another of the $20 credit activities.

Connect to the server

The easiest way is in the browser: select the instance, choose Connect, then the EC2 Instance Connect tab, then Connect. A terminal opens as ec2-user.

Or from your own computer with SSH, using the public IP address shown on the instance's details page:

# Linux, macOS or Git Bash on Windows
chmod 400 lab-key.pem
ssh -i lab-key.pem ec2-user@<public-ip-address>

Once you are in, look around as you would on any new database server:

cat /etc/os-release      # which operating system
nproc; free -h           # CPUs and memory
df -h                    # disks
sudo dnf -y update       # apply OS updates

# the AWS CLI is pre-installed on Amazon Linux. It works here once the
# instance has an IAM role with S3 permissions (Actions, Security, Modify IAM role)
aws s3 ls

Step 7: Clean up

Running resources use up credits, so clear the lab away when you finish:

  1. EC2: select the instance → Instance state → Terminate instance. Then check Elastic Block Store → Volumes and Snapshots for anything left over.
  2. S3: select each lab bucket → Empty, then Delete. Or in CloudShell: aws s3 rb s3://yourname-lab-cli-2026 --force.
  3. Billing → Credits and Bills: check that nothing is still being charged.

Common mistakes

  • Working as the root user every day. Use your IAM admin user and keep root behind MFA.
  • Opening SSH to the whole internet. Use My IP as the source in the security group.
  • Stopping instead of terminating lab servers. A stopped instance still pays for its disks.
  • Making a bucket public to "just share a file". Use a presigned URL instead: aws s3 presign s3://bucket/file --expires-in 3600.
  • Losing the key pair file. AWS cannot give it back. Keep it safe, or use EC2 Instance Connect.
  • Looking in the wrong Region and thinking resources have disappeared.
  • Putting access keys in scripts or GitHub. Use CloudShell or IAM roles on EC2 instead of long-lived keys.

Summary

You created an AWS account on the Free plan, protected the root user with MFA, created an IAM admin user for daily work, and set a budget alert. You then stored files in Amazon S3 from both the console and the CLI, launched and connected to an EC2 server, and cleaned everything up. These are the building blocks for everything else in AWS, from Amazon RDS to full database migrations.

Ready for the next step? The GoldenGate initial load at an SCN tutorial uses EC2 and S3 to move a live Oracle schema. Both are covered in depth in my book, AWS for Database Administrators: From On-Premises to Cloud, with free lab scripts on GitHub. Free Tier details change from time to time; the current rules are always on the AWS Free Tier page.

Want more? Read more DBA tutorials and troubleshooting notes on my blog, Oracle DBA Trench.

Moving your databases to AWS? Bajwa Consulting Services plans and runs Oracle, MySQL and PostgreSQL migrations to Amazon EC2 and RDS. See the AWS migration service or get in touch.