Honest Take — Before You Begin
Terraform will click immediately if you think of it as migrations for infrastructure. You write a declarative description of what you want -- a VPC, a database, a load balancer --…
Infrastructure as Code covers: Ansible for DevOps. Define infrastructure declaratively with Terraform and configure servers with Ansible. Understand GitOps principles and immutable infrastructure.
Terraform for your RDS, ElastiCache, S3. Ansible for server configuration. Together, they replace clicking around the AWS console and SSH-ing to configure servers by hand.
| Rails Infrastructure | IaC Tool |
|---------------------|----------|
| PostgreSQL (RDS) | Terraform: aws_db_instance |
| Redis (ElastiCache) | Terraform: aws_elasticache_cluster |
| Asset storage (S3) | Terraform: aws_s3_bucket |
| SSL certificate | Terraform: aws_acm_certificate |
| Server setup (Ruby, Nginx) | Ansible playbook |
| Deploy config (Puma, systemd) | Ansible role |
| Secrets management | Terraform: aws_secretsmanager_secret + Ansible Vault |
This course unlocks once you've finished its prerequisite. Open prerequisite →
Terraform will click immediately if you think of it as migrations for infrastructure. You write a declarative description of what you want -- a VPC, a database, a load balancer --…
Somewhere right now there is a server you are afraid of. It works, but nobody remembers exactly how it got that way — a decade of SSH sessions, a PostgreSQL config someone tuned d…
Work through each item before the checkpoint.
Provision a complete Rails infrastructure with Terraform: a VPC with public and private subnets, RDS PostgreSQL, ElastiCache Redis, S3, an ALB, EC2, and security groups — with rem…
4 lessons. Read in order; spiral back when you need to. By the end you'll have used the core ideas twice — once on the abstract, once on something you'll meet at work next week.