Skip to main content

Azure Terraform Generate

Generate terraform config from deployed azure resources.

Made a bunch of stuff in azure but wish you’d used terraform? Now’s your chance to fix the mistakes of past-you.

Work in progress

This is currently just a proof of concept type thing.

Requirements

  • Python 3.5+

  • The Azure 2.0 CLI (The python based az one).

In order to dodge API calling and avoid having to deal with azure authentication, this project abdicates all responsibility for that functionality by shelling out to the azure CLI.

Install

pip3 install aztfgen

Usage

The arguments are intended to match whatever you’ll also need to pass to terraform import to take care of getting the current state into terraform.

aztfgen <terraform-address> <resource-id>

License

MIT

Metadata

Release files for aztfgen 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aztfgen 0.1.3
File Size Uploaded Provenance Actions
aztfgen-0.1.3.tar.gz 3.2 kB Without provenance Details for aztfgen-0.1.3.tar.gz

Release files / aztfgen-0.1.3.tar.gz

Download URL aztfgen-0.1.3.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a891c0f361695d128d4c214787a7aef6a791f4154effe6e0dfbe2e8fe7e51205
BLAKE2b-256 checksum
How to use checksums
066b29d8b83ba6b890eb013a450966ede13bd50223aff539898f8aff34eefc93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for aztfgen 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page