If you are new to Amazon Web Services (AWS), this post covers how to open an account safely and what four of the most used services do: S3, EC2, CloudFront and Route 53. As an example, my own website, bajwaconsulting.com, runs on S3, CloudFront and Route 53.
1. Opening an AWS account
- Go to aws.amazon.com/free and choose Create free account.
- Enter an email address for the account (the root user) and an account name. Use an address you will keep, ideally a shared team address for company accounts.
- Choose an account plan. New accounts choose a Free plan or a Paid plan. New customers get up to $200 in credits: $100 at sign-up and up to $100 more by trying key services. The Free plan ends after 6 months or when the credits are used up, whichever comes first.
- Add contact details and a payment card (required even for the Free plan), and verify your phone number.
- Choose the Basic support plan, which is free.
Free Tier details change from time to time; check the AWS Free Tier page for the current terms before you build anything.
2. Secure the account first
- Turn on MFA for the root user (Security credentials in the account menu). The root user can do everything, including closing the account.
- Stop using the root user for daily work. Create an administrator user in IAM Identity Center (or an IAM user with MFA) and sign in with that.
- Create a budget alert. In Billing, create a monthly cost budget (for example $10) that emails you at 80% and 100%.
- Pick one Region, for example us-east-1 (N. Virginia) or us-east-2 (Ohio), and create your resources there, so you always know where they are.
- Never put access keys in code or on GitHub. Use
aws configure ssofor the AWS CLI instead of long-term keys.
3. Amazon S3: storage for files
Amazon Simple Storage Service (S3) stores files, called objects, in containers called buckets. It is not a disk you mount; you upload and download objects over HTTPS or with the AWS CLI.
- Bucket names are unique across all of AWS, for example
mycompany-db-backups-2026. - S3 is designed for very high durability, and copies your data across several Availability Zones in the Region.
- Storage classes trade price for access speed: S3 Standard for frequent use, Standard-IA for infrequent access, and Glacier classes for archives you rarely read.
- Lifecycle rules move or delete objects automatically, for example "move backups to Glacier after 30 days, delete after 1 year".
- New buckets block public access by default. Keep it that way unless you deliberately host public files.
aws s3 mb s3://mycompany-db-backups-2026 aws s3 cp expdp_full.dmp s3://mycompany-db-backups-2026/exports/ aws s3 ls s3://mycompany-db-backups-2026/exports/ aws s3 sync ./website s3://my-website-bucket
DBA uses: database backups and Data Pump dumps, moving files during a migration, and hosting a static website.
4. Amazon EC2: virtual servers
Amazon Elastic Compute Cloud (EC2) gives you virtual servers, called instances, that you control like any Linux or Windows server.
- Instance type: the size, such as
t3.micro(small, for tests) orr6i.2xlarge(memory-optimized, good for databases). - AMI: the image the server starts from, such as Oracle Linux, Amazon Linux or Windows Server.
- EBS volumes: the disks. Choose gp3 for most uses and io2 for demanding databases.
- Security groups: the firewall. Allow only the ports and source addresses you need, for example SSH from your own IP only.
- Key pairs: used to log in over SSH. Keep the private key safe.
- Pricing: On-Demand by the second, or lower prices with Savings Plans or Reserved Instances for servers you run all the time. A stopped instance does not charge for compute, but its EBS disks still cost money.
DBA uses: running Oracle Database on EC2 when you need full control of the database and operating system (single instance and Data Guard work well; Oracle RAC needs special shared-storage solutions on EC2), GoldenGate hubs, and jump hosts for administration.
5. Amazon CloudFront: a fast, secure front door
CloudFront is AWS's content delivery network (CDN). It keeps copies of your website files in edge locations around the world, so visitors download them from a location near them.
- The origin is where the real files live, often an S3 bucket or a web server.
- Use an Origin Access Control (OAC) so the S3 bucket stays private and only CloudFront can read it.
- Add free HTTPS with a certificate from AWS Certificate Manager. For CloudFront, the certificate must be created in us-east-1.
- After you update files, create an invalidation so visitors get the new version:
aws cloudfront create-invalidation --distribution-id E1234567890ABC --paths "/*"
6. Amazon Route 53: DNS and domains
Route 53 is AWS's DNS service. It turns names like www.example.com into the addresses of your servers or CloudFront distribution.
- You can register a domain in Route 53, or keep it at your current registrar and point its name servers to Route 53.
- A hosted zone holds the DNS records for one domain.
- Common records: A (name to IPv4 address), CNAME (name to another name), MX (mail servers), TXT (verification, such as for Google Search Console).
- Alias records point the bare domain (
example.com) straight to CloudFront or a load balancer, which a normal CNAME cannot do. - Health checks and routing policies can send traffic to a standby site if the main one fails.
How they fit together: a static website
Visitor --> Route 53 (www.example.com)
--> CloudFront (HTTPS, cached at the edge)
--> S3 bucket (private, holds the HTML, CSS and images)
This setup costs very little for a small site, has no servers to patch, and handles traffic spikes on its own.
Avoiding surprise bills
- Set a budget alert on day one.
- Stop or terminate EC2 instances you are not using, and delete their EBS volumes and snapshots if you no longer need them.
- Release unused Elastic IP addresses and delete NAT gateways from test setups; both charge by the hour.
- Check Billing → Bills and Cost Explorer once a week while you are learning.
If you are a DBA moving databases to AWS, my book AWS for Database Administrators: From On-Premises to Cloud covers these services and many more in depth, with hands-on labs.
More DBA scripts are in my GitHub repository: github.com/sbajwa55/dba-scripts. For help with Oracle, cloud migrations or AWS, visit Bajwa Consulting Services.

No comments:
Post a Comment