Skip to main content

Terraobject

Terraobject package to share variables between terrascript components

You can use the Terraobject to parameter to several classes and share resources to be used by other terraform resources.

Examples:

# Create the reference
from terraobject import Terraobject

# Import the terrascript resources you need
from terrascript import provider
from terrascript.digitalocean.d import digitalocean_volume

# Create the object
o = Terraobject()

# Add the providers, resources, data, as usual
o.terrascript.add(provider("digitalocean", token="tokentoken"))

# Get some info (e.g. data) and share to be used on other commands
persistent_volume = digitalocean_volume("persistent_volume", name="volume-nyc3-01", region="abc")
o.terrascript.add(persistent_volume)
o.shared['persistent_volume'] = persistent_volume

# And you can use and another place:
o.shared['persistent_volume'].name

# Dump the XML
print(o.terrascript.dump())

More information about terrascript:

https://github.com/mjuenema/python-terrascript

Metadata

Release files for terraobject 0.0.1

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

Source distribution (sdist)

Source distribution for terraobject 0.0.1
File Size Uploaded
terraobject-0.0.1.tar.gz 1.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for terraobject 0.0.1
File Interpreter ABI Platform
terraobject-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 4.3 kB

Release files / terraobject-0.0.1.tar.gz

Download URL terraobject-0.0.1.tar.gz
Size 1.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0dd8ffeb2c17c9ed198e021c074e16ac681a69b8ec9374a08469aa459fe864bc
BLAKE2b-256 checksum
How to use checksums
6c0953f0d32ecafce153d8a324cc86dab6b42dfe6dfaef1b9065792cffe72a02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.5

Release files / terraobject-0.0.1-py3-none-any.whl

Download URL terraobject-0.0.1-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
096e47f81bb564e8a05a4e4af6e59608240ed2219dfdfb0217196293eb428f3b
BLAKE2b-256 checksum
How to use checksums
b8b9c75abd6187649a3c813bb9c2853e9e58de6177a2d32ab8b66af55e1aecd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.5

Release history Release notifications | RSS feed

This release

0.0.1 This release

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