Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Infrastructure as Code/Terraform Demo - Atea Community 2023

License

Notifications You must be signed in to change notification settings

atea/Community-2023-IaC-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Community-2023-IaC-Demo

Infrastructure as Code/Terraform Demo - Atea Community Bergen 2023

1. Beginner

2. Intermediate

3. Useful third-party tools

  • Checkov and/or tfsec - Static code analysis to catch security problems and misconfiguration

  • tfenv - Version manager to have multiple versions of Terraform installed for different projects

  • Infracost - Create cost calculations for public cloud

  • tflint - Improved linting compared to running terraform validate and catch configuration errors that wont be discovered until running terraform apply. Requires adding the relevant plugin with rulesets for AWS/Azure/GCP

  • terraform-docs - Auto-generated documentation. I use this to add information to the README file with input variables, outputs, dependencies and an overview of which resources Terraform creates

All of these tools can also be used together with pre-commit-terraform to run checks before code changes is commited to git (instead of waiting for the CI/CD pipeline to give you feedback)

4. Auto-generated Terraform docs

Requirements

Name Version
terraform >= 1.5.0
azuread ~> 2.45.0
azurerm ~> 3.78.0

Providers

Name Version
azuread 2.45.0
azurerm 3.78.0

Modules

Name Source Version
backend ./modules/linuxvm n/a
network ./modules/network n/a
webserver ./modules/linuxvm n/a

Resources

Name Type
azurerm_resource_group.demo resource
azuread_user.current data source
azurerm_client_config.current data source

Inputs

Name Description Type Default Required
location Default region in Azure for resources string "westeurope" no

Outputs

No outputs.

About

Infrastructure as Code/Terraform Demo - Atea Community 2023

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages