Python infrastructure-as-code

Open-source Python projects categorized as infrastructure-as-code

Top 23 Python infrastructure-as-code Projects

infrastructure-as-code
  1. SaltStack

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

    Project mention: Linux from the user's perspective - Part1: Installing Linux | dev.to | 2025-06-17

    Of course, booting from a disk is not the only option. If you want to automate installs across servers - you have to boot from the network. That is something you could play around with, in GNS3 for example, using FAI or your own system based on SaltStack. You could skip the installation altogether, and use a Live Image, or a Thin Client.

  2. Civic Auth

    Simple auth for Python backends. Drop Civic Auth into your Python backend with just a few lines of code. Email login, SSO, and route protection built-in. Minimal config. Works with FastAPI, Flask, or Django.

    Civic Auth logo
  3. checkov

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

    Project mention: Ditched Terraform for OpenTofu. Why Devs Everywhere Are Making the Same Move (cheatsheet included) | dev.to | 2025-06-19

    Checkov https://www.checkov.io A static analysis tool to scan infrastructure code for misconfigs, secrets, and best practice violations.

  4. octoDNS

    Tools for managing DNS across multiple providers

  5. pytest-testinfra

    Testinfra test your infrastructures

  6. fixinventory

    Fix Inventory helps you identify and remove the most critical risks in AWS, GCP, Azure and Kubernetes.

  7. ggshield

    Detect and validate 500+ types of hardcoded secrets with advanced checks. Use it as a pre-commit hook, GitHub Action, or CLI for proactive secret detection and security.

  8. eNMS

    An enterprise-grade vendor-agnostic network automation platform.

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. ansible-opnsense

    Ansible Collection to manage OPNSense firewalls using their API

    Project mention: OpenWISP: Multi-device fleet management for OpenWrt routers | news.ycombinator.com | 2025-02-05

    Maybe just go with ansible or similar: https://github.com/ansibleguy/collection_opnsense

  11. modules.tf-lambda

    Infrastructure as code generator - from visual diagrams created with Cloudcraft.co to Terraform

    Project mention: OpenFLOW – Quickly make beautiful infrastructure diagrams local to your machine | news.ycombinator.com | 2025-06-30

    Cloudcraft[1][2] can do that with your cloud provider, AWS or Azure.

    [1]: https://www.cloudcraft.co/

    [2]: I’m part of the Cloudcraft team at DataDog, so obviously, I’m biased.

  12. infrahub

    Infrahub offers a central hub to manage the data, templates and playbooks that powers your infrastructure by combining the version control and branch management capabilities of Git with the flexible data model and UI of a graph database.

  13. iambic

    IAMbic is Version-Control for IAM. It centralizes and simplifies cloud access and permissions. It maintains an eventually consistent, human-readable, bi-directional representation of IAM in Git.

  14. hongbomiao.com

    A personal research and development (R&D) lab that facilitates the sharing of knowledge.

  15. grafana-ansible-collection

    grafana.grafana Ansible collection provides modules and roles for managing various resources on Grafana Cloud and roles to manage and deploy Grafana Agent and Grafana

  16. runway

    Simplify infrastructure/app deployment.

  17. ansible-webui-v0

    Basic WebUI for using Ansible

    Project mention: Basic WebUI for Using Ansible | news.ycombinator.com | 2025-01-08
  18. transible

    Convert existing cloud configuration to ansible playbooks

  19. paco

    Paco: Prescribed automation for cloud orchestration (by waterbear-cloud)

  20. sw_proxmox_mail_gw

    Role to install Proxmox Mail Gateway on a linux server

  21. ansible-collection-nftables

    Ansible modules to manage NFTables via libnftables

  22. ansible-role-nftables

    Ansible Role to provision NFTables firewall

  23. cfnlite

    Simple and sensible CloudFormation generator

    Project mention: Show HN: I made a simple and sensible CloudFormation generator | news.ycombinator.com | 2025-01-31
  24. cardano-node-role

    Install Cardano Node as a systemd service and wrap it with Ansible to provide simplified Ops interface to mint tokens and assert certain state of the ledger.

  25. addons_nftables

    Ansible Role to provision Add-Ons for NFTables on Linux servers

  26. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python infrastructure-as-code discussion

Log in or Post with

Python infrastructure-as-code related posts

  • What is an AWS CloudFormation Template?

    4 projects | dev.to | 27 Jan 2025
  • Ask HN: How are you deploying your lambdas these days?

    2 projects | news.ycombinator.com | 6 Jun 2024
  • discussion forum for Grafana roles on Ansible Galaxy

    1 project | /r/grafana | 10 Dec 2023
  • Push the Green Button: Creating Event Gadgets with IoT and Serverless Architecture

    4 projects | dev.to | 22 Jun 2023
  • Terraform and Microservices

    3 projects | dev.to | 11 May 2023
  • Invoice granularity: Show different accounts/cost allocation tags on invoice

    1 project | /r/aws | 11 Apr 2023
  • Resoto | Graph-based Cloud Asset Inventory

    1 project | /r/u_Current_Doubt_8584 | 8 Apr 2023
  • A note from our sponsor - Sevalla
    sevalla.com | 31 Aug 2025
    Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more! Learn more →

Index

What are some of the best open-source infrastructure-as-code projects in Python? This list will help you:

# Project Stars
1 SaltStack 14,745
2 checkov 7,817
3 octoDNS 3,427
4 pytest-testinfra 2,438
5 fixinventory 2,026
6 ggshield 1,827
7 eNMS 822
8 ansible-opnsense 374
9 modules.tf-lambda 353
10 infrahub 340
11 iambic 293
12 hongbomiao.com 245
13 grafana-ansible-collection 202
14 runway 173
15 ansible-webui-v0 127
16 transible 35
17 paco 33
18 sw_proxmox_mail_gw 14
19 ansible-collection-nftables 13
20 ansible-role-nftables 9
21 cfnlite 4
22 cardano-node-role 3
23 addons_nftables 2

Sponsored
Simple auth for Python backends
Drop Civic Auth into your Python backend with just a few lines of code. Email login, SSO, and route protection built-in. Minimal config. Works with FastAPI, Flask, or Django.
www.civic.com

Did you know that Python is
the 2nd most popular programming language
based on number of references?