Zurück zum Ranking

Artemmkin/infrastructure-as-code-tutorial

Infrastructure As Code Tutorial. Covers Packer, Terraform, Ansible, Vagrant, Docker, Docker Compose, Kubernetes

infrastructure-as-codepackeransibleterraformvagrantdockerdocker-composekubernetesgooglecloudplatform
Sterne-Wachstum
Sterne
2.3k
Forks
418
Wochenwachstum
Issues
7
2.3k2.3k2.3k
18. Juli19. Juli21. Juli22. Juli
README

Infrastructure As Code Tutorial

license Tweet

This tutorial is intended to show what the Infrastructure as Code (IaC) is, why we need it, and how it can help you manage your infrastructure more efficiently.

It is practice-based, meaning I don't give much theory on what Infrastructure as Code is in the beginning of the tutorial, but instead let you feel it through the practice first. At the end of the tutorial, I summarize some of the key points about Infrastructure as Code based on what you learn through the labs.

This tutorial is not meant to give a complete guide on how to use a specific tool like Ansible or Terraform, instead it focuses on how these tools work in general and what problems they solve.

The tutorial was inspired by Kubernetes the Hard Way tutorial. I used it as an example to structure this one.

See my presentation at DevOpsDays Silicon Valley in which I talk more in depth about the tutorial.

Need your help!

This tutorial was created in 2018 and wasn't being kept up to date. Therefore, some of the instructions may not work due to updated APIs, obsolete repositories, etc. I apologize for that, but I currently don't have time to update this tutorial. So if you find that something is broken and you find a fix, please submit a PR.

When submitting a PR, make sure you include a description for it, i.e. what's broken and a test plan for the fix.

Also, note that some of things need to be updated in several different repositories at the same time. Main repositories used in this tutorial:

Target Audience

The target audience for this tutorial is anyone who loves or/and works in IT.

Tools Covered

  • Packer
  • Terraform
  • Ansible
  • Vagrant
  • Docker
  • Docker Compose
  • Kubernetes

Results of completing the tutorial

By the end of this tutorial, you'll make your own repository looking like this one.

NOTE: you can use this example repository in case you get stuck in some of the labs.

Labs

This tutorial assumes you have access to the Google Cloud Platform. While GCP is used for basic infrastructure requirements the lessons learned in this tutorial can be applied to other platforms.

Ähnliche Repositories
hashicorp/terraform

Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.

GoGo ModulesOthergraphinfrastructure-as-code
developer.hashicorp.com/terraform
49.3k10.5k
aquasecurity/trivy

Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more

GoGo ModulesApache License 2.0securitysecurity-tools
trivy.dev
37k547
kestra-io/kestra

Event Driven Orchestration & Scheduling Platform for Mission Critical Applications

JavaMavenApache License 2.0orchestrationdata-orchestration
go.kestra.io/home
27.4k2.8k
pulumi/pulumi

Pulumi - Infrastructure as Code in any programming language 🚀

GoGo ModulesApache License 2.0infrastructure-as-codeserverless
pulumi.com
25.5k1.4k
saltstack/salt

Software to automate the management and configuration of infrastructure and applications at scale.

PythonPyPIApache License 2.0pythonconfiguration-management
docs.saltproject.io/salt/install-guide/en/latest/
15.6k5.6k
GoogleCloudPlatform/terraformer

CLI tool to generate terraform files from existing infrastructure (reverse Terraform). Infrastructure to Code

GoGo ModulesApache License 2.0cloudterraform
14.6k1.8k
aws/aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code

TypeScriptnpmApache License 2.0awsinfrastructure-as-code
aws.amazon.com/cdk
12.8k4.6k
infracost/infracost

Cloud cost intelligence for engineers, AI coding agents, and CI/CD 💰📉 Shift FinOps Left!

GoGo ModulesApache License 2.0terraformcost-estimation
infracost.io
12.4k679
encoredev/encore

The infrastructure platform for the intelligence era

GoGo ModulesMozilla Public License 2.0gobackend
encore.dev
12.2k603
crossplane/crossplane

The Cloud Native Control Plane

GoGo ModulesApache License 2.0kubernetescloud-computing
crossplane.io
11.9k1.2k
meshery/meshery

Meshery, the cloud native manager

TypeScriptnpmApache License 2.0mesherymanagement-plane
meshery.io
11.4k3.6k
bridgecrewio/checkov

Prevent cloud misconfigurations and find vulnerabilities during build-time in infrastructure as code, container images and open source packages with Checkov by Bridgecrew.

PythonPyPIApache License 2.0terraformstatic-analysis
checkov.io
8.9k1.4k