generated from CodeYourFuture/Module-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
Cloud🎯 Topic DeliveryShipping our work, deploying our code, delivering our productShipping our work, deploying our code, delivering our product🎯 Topic RequirementsInterpreting requirements with precision and accuracyInterpreting requirements with precision and accuracy🎯 Topic TestingIt's important that software works and that people can use itIt's important that software works and that people can use it🏝️ Priority StretchDo this once mandatory and key work is doneDo this once mandatory and key work is done📅 Sprint 4🦑 Size Large4-8 hours4-8 hours
Description
Link to the coursework
https://developer.hashicorp.com/terraform/docs
Why are we doing this?
Objective
In this exercise, you will utilize a Terraform module to create a reusable configuration for S3 buckets. Additionally, you'll implement remote state management using an S3 bucket.
Steps
-
Create a Terraform Module for S3 Buckets
- Create a new directory named
s3_module
and place a new Terraform file inside it, e.g.,main.tf
. - Define the Terraform code for an S3 bucket inside this file.
- Create a new directory named
-
Implement Remote State in S3
- In your main Terraform configuration (
main.tf
), configure the backend for remote state using S3.
- In your main Terraform configuration (
-
Initialize and Apply
- Initialize your Terraform project.
- Apply the configuration to create the S3 bucket using the module and configure remote state.
Validation
- Confirm that the S3 bucket was created as expected.
- Check the S3 bucket where you store the remote state to ensure that the
terraform.tfstate
file is present.
References
Maximum time in hours
n/a stretch
How to get help
Ask calm, curious questions with links, code samples, and no screenshots.
https://curriculum.codeyourfuture.io/guides/asking-questions/
How to submit
Demo your progress in class.
Metadata
Metadata
Assignees
Labels
Cloud🎯 Topic DeliveryShipping our work, deploying our code, delivering our productShipping our work, deploying our code, delivering our product🎯 Topic RequirementsInterpreting requirements with precision and accuracyInterpreting requirements with precision and accuracy🎯 Topic TestingIt's important that software works and that people can use itIt's important that software works and that people can use it🏝️ Priority StretchDo this once mandatory and key work is doneDo this once mandatory and key work is done📅 Sprint 4🦑 Size Large4-8 hours4-8 hours
Type
Projects
Status
📋 Backlog