Terraform remote state in S3

Terraform with remote state in S3

tl;dr: You can use S3 to store your Terraform state file remote. To migrate a local state file, add a backend "s3" {} block to your Terraform configuration and run terraform init -migrate-state. You no longer need to use DynamoDB for state locking, as S3 now has native support for this with use_lockfile = true. Table of Contents What is remote state? State locking Set AWS as a Terraform backend Migrating local state to S3 Conclusion What is remote state? When you run terraform apply, terraform will create a state file. When ever you make a change to your terraform configuration and apply it, terraform will check the difference between the config and the state before makeing the needed changes. ...

August 7, 2025
static website with s3

Part 4: Static Website - Amazon S3

Complete The Cloud Resume Challenge The Challenge Part 1: Get AWS Certified and complete The Cloud Resume Challenge Part 2: HTML - Create a website Part 3: CSS - Style your website –> Part 4: Static Website - Amazon S3 <– Part 5: HTTPS - Set up Amazon CloudFront Part 6: DNS - Custom domain name with Amazon Route 53 Part 7-12: Backend - Creating a serverless API and requesting it with JS Part 13-16: CI/CD - Commit, Build and Deploy with AWS CodePipeline tl;dr: Host a static website from AWS S3 ...

January 7, 2025