diff --git a/NOTICE b/NOTICE index 547595f90..6e2b44a46 100644 --- a/NOTICE +++ b/NOTICE @@ -1,12 +1,9 @@ -Copyright 2022 LinkedIn Corporation +Copyright 2023 LinkedIn Corporation All Rights Reserved. Licensed under the LinkedIn Learning Exercise File License (the "License"). See LICENSE in the project root for license information. -ATTRIBUTIONS: -[PLEASE PROVIDE ATTRIBUTIONS OR DELETE THIS AND THE ABOVE LINE “ATTRIBUTIONS”] - Please note, this project may automatically load third party code from external repositories (for example, NPM modules, Composer packages, or other dependencies). If so, such third party code may be subject to other license terms than as set diff --git a/README.md b/README.md index a277b16cf..a13d5279d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # Learning Terraform -This is the repository for the LinkedIn Learning course `Learning Terraform`. The full course is available from [LinkedIn Learning][lil-course-url]. +This is the repository for the LinkedIn Learning course Learning Terraform. The full course is available from [LinkedIn Learning][lil-course-url]. + +![Learning Terraform][lil-thumbnail-url] + +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 @@ -10,8 +14,15 @@ The branches are structured to correspond to the videos in the course. The namin The `main` branch contains the starting code for the course and the `final` branch contains the completed code. -[0]: # (Replace these placeholder URLs with actual course URLs) +### Instructor + +Josh Samuelson + +DevOps Engineer + + -[lil-course-url]: https://www.linkedin.com/learning/ -[lil-thumbnail-url]: http:// +Check out my other courses on [LinkedIn Learning](https://www.linkedin.com/learning/instructors/josh-samuelson). +[lil-course-url]: https://www.linkedin.com/learning/learning-terraform-15575129?dApp=59033956 +[lil-thumbnail-url]: https://cdn.lynda.com/course/3087701/3087701-1666200696363-16x9.jpg diff --git a/main.tf b/main.tf index be8a0a4ad..f60a95e01 100644 --- a/main.tf +++ b/main.tf @@ -14,28 +14,14 @@ data "aws_ami" "app_ami" { owners = ["979382823631"] # Bitnami } -data "aws_vpc" "default" { - default = true -} - -resource "aws_instance" "blog" { - ami = data.aws_ami.app_ami.id - instance_type = var.instance_type - vpc_security_group_ids = [module.blog_sg.security_group_id] - - tags = { - Name = "Learning Terraform" - } -} - module "blog_sg" { source = "terraform-aws-modules/security-group/aws" version = "4.13.0" - vpc_id = data.aws_vpc.default.id + vpc_id = module.blog_vpc.vpc_id name = "blog" ingress_rules = ["https-443-tcp","http-80-tcp"] ingress_cidr_blocks = ["0.0.0.0/0"] egress_rules = ["all-all"] egress_cidr_blocks = ["0.0.0.0/0"] -} +} \ No newline at end of file diff --git a/providers.tf b/providers.tf index c41e3650b..9d54c2495 100644 --- a/providers.tf +++ b/providers.tf @@ -7,5 +7,5 @@ terraform { } provider "aws" { - region = "us-west-2" + region = "ap-southeast-2" } diff --git a/variables.tf b/variables.tf index 48b7a7590..60856bc92 100644 --- a/variables.tf +++ b/variables.tf @@ -1,4 +1,4 @@ variable "instance_type" { description = "Type of EC2 instance to provision" default = "t3.nano" -} \ No newline at end of file +}