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
aztfgen-0.1.3.tar.gz 3.2 kB Details

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

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

2 release files

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