🚀 Admissions Open for Winter Training Programs 2026
Datadrix Company
Data EngineeringAWS Cloud Project13 min read

AWS Data Engineering Project: S3, Glue, Athena and Redshift

Build a cloud-native serverless data analytics platform on Amazon Web Services: ingesting raw logs into S3, cataloging with AWS Glue Crawlers, querying ad-hoc with Athena, and loading into Amazon Redshift.

KM
Karan MalhotraVerified Mentor
Lead Big Data & Cloud Architect @ Datadrix • Published Aug 05, 2026
#AWS Data Engineering#AWS Glue Crawler#Amazon Athena#Amazon Redshift#AWS S3 Data Lake
Datadrix Technical SpecInteractive Architecture
Domain: Data EngineeringVerified by Datadrix Technical Council
Executive Overview

Amazon Web Services (AWS) powers over 40% of the cloud data pipelines deployed across Indian IT leaders and global capability centers. Understanding how core AWS analytics services—S3, AWS Glue, Amazon Athena, and Amazon Redshift—fit together is the most direct route to landing a Cloud Data Engineer position. In this project blueprint, we construct a production-ready serverless analytics warehouse.

11. The AWS Analytics Blueprint

Amazon S3 (Data Lake Storage): Multi-tier bucket architecture organizing data into /raw, /cleansed, and /curated folders with year/month/day hive partitioning.

AWS Glue Data Catalog & Crawlers: Automatically inspects raw JSON/CSV files in S3, infers schemas, detects schema evolution, and registers tables in the metadata catalog.

Amazon Athena: Serverless Presto/Trino SQL query engine that executes queries directly on S3 Parquet files with zero provisioned infrastructure.

Amazon Redshift Serverless: High-performance columnar cloud data warehouse for low-latency BI dashboards and executive queries.

22. Serverless AWS Glue PySpark Transformation Job

Here is the AWS Glue PySpark script converting raw JSON logs into partitioned Snappy Parquet tables registered with the Glue Data Catalog:

Production Code Snippet
import sys
from awsglue.transforms import *
from awsglue.utils import getResolvedOptions
from pyspark.context import SparkContext
from awsglue.context import GlueContext
from awsglue.job import Job
from pyspark.sql.functions import col, year, month, dayofmonth

# Initialize Glue Context
args = getResolvedOptions(sys.argv, ['JOB_NAME'])
sc = SparkContext()
glueContext = GlueContext(sc)
spark = glueContext.spark_session
job = Job(glueContext)
job.init(args['JOB_NAME'], args)

# Read from Raw S3 Bucket using Glue DynamicFrame
datasource = glueContext.create_dynamic_frame.from_options(
    connection_type="s3",
    connection_options={"paths": ["s3://datadrix-enterprise-lake/raw/web_logs/"]},
    format="json"
)

# Convert to PySpark DataFrame for transformations
df = datasource.toDF()

# Clean & Partition by Date
clean_df = df.filter(col("user_id").isNotNull()) \
    .withColumn("year", year(col("timestamp"))) \
    .withColumn("month", month(col("timestamp"))) \
    .withColumn("day", dayofmonth(col("timestamp")))

# Write to Curated S3 Bucket in Snappy Parquet format
clean_df.write \
    .partitionBy("year", "month", "day") \
    .mode("append") \
    .parquet("s3://datadrix-enterprise-lake/curated/web_logs/")

job.commit()
print("Glue ETL Job Completed Successfully!")

33. Querying with Athena & Redshift Spectrum

Once cataloged, data analysts can instantly query terabytes of S3 logs in Athena using standard ANSI SQL without spinning up servers:

Query performance tip: Partitioning by Year/Month/Day reduces Athena scanned data volume by over 90%, slashing AWS costs directly.

Redshift Spectrum enables querying S3 tables directly from within your Redshift cluster without loading data onto Redshift local disks.

Key Architectural Takeaways:
  • Always convert raw CSV/JSON to Parquet in your Glue ETL jobs for massive cost and speed advantages in Athena.
  • Use S3 lifecycle policies to automatically transition raw logs to Glacier after 90 days.

Mentor Conclusion & Industry Next Steps

Demonstrating an end-to-end AWS project validates that you understand enterprise cloud security, cost management, and architecture. Learn AWS data engineering with real cloud credits at Datadrix Delhi.

Hands-On Technical Mentorship

Want to Master These Skills in Production?

Join Datadrix’s live cohort with 1:1 mentor code reviews, capstone projects, and 400+ hiring partner referrals.

Book Free Demo Class
Continue Reading

Related Guides & Insights

View All Articles