Utilities for working with Pulumi stacks
Project description
pulumi-stack-utils
A collection of utilities for working with Pulumi stacks
The original motivation for this package is to get around some limitations with the StackReference
available in the official pulumi Python package. Specifically around
reading outputs from other stacks. Currently, stacks need to share the same passphrase to read outputs
from each other, even if the output isn't secret.
More information can be found in this issue.
Installation
pip install pulumi-stack-utils
Usage
Retrieve outputs from a stack using an S3 backend
from pulumi_stack_utils import StackReference
# If backend_url isn't provided the package will try and read it
# from the Pulumi.yaml file in the cwd
ref = StackReference("project/my-stack", backend_url="s3://state-backend/prefix")
output = ref.get_output("myOutput")
Autotag resources created on AWS. Based on this blog post
import pulumi
from pulumi_stack_utils.aws.autotag import register_auto_tags
config = pulumi.config()
register_auto_tags({
"user:Project": pulumi.get_project(),
"user:Stack": pulumi.get_stack(),
"user:Owner": config.require("stackOwner"),
})
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pulumi-stack-utils-0.1.2.tar.gz
.
File metadata
- Download URL: pulumi-stack-utils-0.1.2.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4fc69e009a285e24789e8840e46db12fc4ac737a9114c7c3e3ac2b8a2f3df78 |
|
MD5 | a3c18ba560a90318735ce00f051069ae |
|
BLAKE2b-256 | 958523f3f0c2b8c1403c3ed8f67e0368d16be5177a36b68ff7209bcd18aa2ae1 |
File details
Details for the file pulumi_stack_utils-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: pulumi_stack_utils-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18d484dfe792393d80b247505e0585e10135f5bccc1c8b7e13e6cc8b328e3bc4 |
|
MD5 | 3caeff1bf716411269fbebc2bebd2560 |
|
BLAKE2b-256 | 6e033697cbc1285656799e3253c7901775a9d5a1f94428ac411e6b979309251c |