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:
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| terraobject-0.0.1.tar.gz | 1.2 kB | Without provenance | Details for terraobject-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| terraobject-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for terraobject-0.0.1-py3-none-any.whl |
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
|
Security for terraobject 0.0.1
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.