Terraform S3 with Floci as Local AWS Simulator
Intermediate · 35 minutes · 100 points
In this hands-on lab, you will use Terraform to provision and manage S3 buckets against Floci, a lightweight local AWS simulator that runs inside your lab container on http://localhost:4566. You will check that Floci is up, install Terraform, write Terraform configurations targeting the local endpoint, and perform real infrastructure-as-code operations without needing an AWS account. This lab teaches you how to use local AWS simulators for rapid Terraform development and testing workflows.
What you’ll learn
- Run Floci as a local AWS S3 simulator inside the container and install Terraform next to it
- Write a Terraform configuration that targets the Floci local endpoint instead of real AWS
- Use Terraform init, plan, apply, and destroy to manage S3 buckets against the local simulator
- Verify bucket creation and object uploads using the AWS CLI pointed at the Floci endpoint
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 4 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: floci/floci:2.5.0-compat
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
Topics: terraform, s3, floci, local-aws, aws-simulator, infrastructure-as-code, aws-provider, local-testing
Create a free account to start this lab.
Keep going
- Terraform Lifecycle: Create, Update, and Destroy Infrastructure
- Terraform Data Sources: Reading External State and Resources
- Terraform count & for_each: Dynamic Resource Creation
- Terraform Version Management and Configuration
- Terraform AWS IAM with Floci Local AWS Simulator
- Terraform DynamoDB with Floci as Local AWS Simulator