Skip to main content

Infra SDK

A powerful CLI tool that simplifies infrastructure management using OpenTofu (a Terraform fork).

Features

  • Environment-based infrastructure management
  • Interactive module selection
  • State management with SQLite
  • Project configuration with infra.yaml
  • Support for multiple infrastructure modules

Installation

pip install infra-sdk

Quick Start

  1. Initialize a new project:
infra init
  1. Create an environment:
infra env create dev
  1. Create infrastructure from a module:
infra create path/to/module

Project Structure

After initialization, your project will have this structure:

your-project/
├── infra.yaml          # Project configuration
└── .infra/            # State directory (configurable)
    ├── state.db       # SQLite database
    ├── states/        # OpenTofu state files
    └── temp/          # Temporary module copies

Commands

  • infra init - Initialize a new project
  • infra env create <name> - Create a new environment
  • infra env list - List all environments
  • infra create <module> - Create infrastructure from a module
  • infra destroy [module] - Destroy infrastructure

Requirements

  • Python >= 3.8
  • OpenTofu binary (default path: ~/.launchflow/bin/tofu)

License

MIT License

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

infra_sdk-0.1.0.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

infra_sdk-0.1.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file infra_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: infra_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for infra_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2c4dcab0b35ac85a3a7b69c6785eb387a097e10198517c74541b0df4eaff8814
MD5 427aecb8f318216cb9b2410974fd3691
BLAKE2b-256 cae46acae1bdfeb0afaf866b84ae90acae43fc87afcb94d4164d404ba54e24d1

See more details on using hashes here.

File details

Details for the file infra_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: infra_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for infra_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 88ee044d6f6fe9bbd3a2f806e066a2a8fc7e3a91a5995cd15ad94a3a51d989ed
MD5 2767a405f3fb560f166233f45291089e
BLAKE2b-256 bf545f2bb52d1f67aeb35778f7373e3dc13021c9e9a6903ee40e102c52308968

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page