Git Product home page Git Product logo

learning-terraform-3087701's Introduction

Learning Terraform

This is the repository for the LinkedIn Learning course Learning Terraform. The full course is available from LinkedIn Learning.

Learning Terraform

Terraform is a DevOps tool for declarative infrastructure—infrastructure as code. It simplifies and accelerates the configuration of cloud-based environments. In this course, instructor Josh Samuelson shows how to use Terraform to configure infrastructure and manage resources with Amazon Web Services (AWS). After demonstrating how to set up AWS for Terraform, Josh covers how Terraform manages your infrastructure, as well as how to use core Terraform commands. He also delves into more advanced topics, including how to leverage code modules from the Terraform registry and how to create your own modules. Upon wrapping up this course, you'll have the knowledge you need to efficiently define and manage infrastructure with this powerful tool.

See the readme file in the main branch for updated instructions and information.

Instructions

This repository has branches for each of the videos in the course. You can use the branch pop up menu in github to switch to a specific branch and take a look at the course at that stage, or you can add /tree/BRANCH_NAME to the URL to go to the branch you want to access.

Branches

The branches are structured to correspond to the videos in the course. The naming convention is CHAPTER#_MOVIE#. As an example, the branch named 02_03 corresponds to the second chapter and the third video in that chapter. The code is built sequentally so each branch contains the completed code for that particular video and the starting code can be found in the previous video's branch.

The main branch contains the starting code for the course and the final branch contains the completed code.

Instructor

Josh Samuelson

DevOps Engineer

Check out my other courses on LinkedIn Learning.

learning-terraform-3087701's People

Contributors

cmosier-lil avatar samuelson avatar smoser-lil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

learning-terraform-3087701's Issues

Code 04_02 Error creating EC2 Subnet: InvalidSubnet.Conflict

When I try to apply the plan on the 04_02 branch I'm getting an error:

Error: creating EC2 Subnet: InvalidSubnet.Conflict: The CIDR '10.0.102.0/24' conflicts with another subnet status code: 400, request id: d24db4d9-d13d-44e3-b741-b4af409fc7d7
with module.blog_vpc.aws_subnet.public[1]
on .terraform/modules/blog_vpc/main.tf line 97, in resource "aws_subnet" "public":
resource "aws_subnet" "public" {

Screenshot 2024-02-09 at 4 28 18 PM

Code 04_01 error in function call: aws_route_table.private is empty tuple

When running the code solution in branch 04_01, terraform returns errors:

Error: Error in function call
on .terraform/modules/blog_vpc/main.tf line 1087, in resource "aws_route" "private_nat_gateway":
  route_table_id         = element(aws_route_table.private[*].id, count.index)
while calling element(list, index)
aws_route_table.private is empty tuple
count.index is [NB: terraform returns 3 errors, all with the same trace except here, where count.index ranges between 0 and 2.] 
Call to function "element" failed: cannot use element function with an empty list.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.