Skip to main content

Generate terraform config from deployed azure resources.

Project description

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

Project details


Download files

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

Source Distribution

aztfgen-0.1.3.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file aztfgen-0.1.3.tar.gz.

File metadata

  • Download URL: aztfgen-0.1.3.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for aztfgen-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a891c0f361695d128d4c214787a7aef6a791f4154effe6e0dfbe2e8fe7e51205
MD5 b3c129b92e67b9bc3d25d026b2a9e065
BLAKE2b-256 066b29d8b83ba6b890eb013a450966ede13bd50223aff539898f8aff34eefc93

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page