Skip to content

KennethS0/Terraform-AWS-Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform AWS Learning

This repo is a basic example of how to create an AWS EC2 instance through IaC.

To create the resource use the following commands:

  1. terraform init: Generates the necessary files for Terraform to execute.
  2. terraform plan: Shows the changes that will be made (This requires the AWS CLI to be configured correctly).
  3. terraform apply: Executes the changes done to the AWS Resources.

After all that is done, a terraform.tfstate file will be created. This file contains the current state of the infraestructure. This file should not be maintained locally.

  1. terraform destroy: Removes everything that is currently mapped in the terraform.tfstate file.

basic-ec2-config

Demonstration on how to create a basic AWS resource through configuration files.

external-module

Demonstration on how to create an AWS resource using an external module from them Terraform Registry

local-module

Demonstration on how to create an AWS resource by using code as modules, setting variables for inputs and outputs to be consumed by other resources.

state-locking

Demonstration on how to implement a backend-state file in S3 along with the locking implemented through a DynamoDB Table.

About

Demo Terraform Project to manage resources with AWS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages