Skip to content

This repository creates the following resources on AWS: IAM User Groups, Roles, Policies and Attachments; S3 buckets; Glue Crawler and Athena. It also builds and tests what's been createad with a Github Actions workflow.

Notifications You must be signed in to change notification settings

anneglienke/101_terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Terraform logo

"Terraform is an open-source infrastructure as code software tool that enables you to safely and predictably create, change, and improve infrastructure."

License


Terraform 101

This repository creates the following resources on AWS: IAM User Groups, Roles, Policies, and Attachments; S3 buckets; Glue Crawler and Athena. It also builds and tests what's been created with a GitHub Actions workflow.


Table of Contents

Content Description
.github/workflows Github Actions workflow
infrastructure Terraform files

How to use Terraform

The GitHub Actions workflow in this repository will initialize, validate, and build a plan for this Terraform project. To run it successfully, you have to insert your AWS Security Credentials (Access Key ID and Secret Access Key) in Github Secrets. This workflow won't deploy anything to your AWS account, so don't worry. If you want it to, though, you can simply add the command apply auto-approve to it.

You can also run Terraform and test your code locally if you want. Just put your AWS Credentials in the file called provider.tf and then follow these steps:

  1. Install Terraform

  2. Initialize Terraform in your repository using the command terraform init. You should see this message:

  1. Then you have to validate what you've created using the command terraform validate. If your code is valid, it will show:

  1. After that, you can build a plan and see everything Terraform is going to deploy using the command terraform plan.

  1. Finally, to deploy your infrastructure to your cloud provider (in this case, AWS), use the command terraform apply -auto-approve.

  1. If this is just a test and you want to delete everything you've created, you don't have to do it manually. You can simply use the command terraform destroy. Type 'yes' to confirm the deletion.

When the deletion is completed, you'll see this message:

---------------

That's it. You deployed your Infrastructure as Code to AWS. Congratulations!

About

This repository creates the following resources on AWS: IAM User Groups, Roles, Policies and Attachments; S3 buckets; Glue Crawler and Athena. It also builds and tests what's been createad with a Github Actions workflow.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages