Skip to main content

pulumi-extra

License: MIT codecov PyPI - Version

Extra Pulumi utilities and resources for the Python runtime.

✨ Features

  • Shortcuts for working with Pulumi resources, such as transforms, stack references, and template rendering
  • Pulumi transforms to automatically tag (AWS) or label (GCP) resources
  • Pulumi policies to require description (or tag/label if unsupported) on resources (both AWS and GCP)

🚀 Quick start

The most common use case for pulumi-extra is auto-tagging AWS resources and auto-labeling GCP resources. For example, in your stack's __main__.py file:

from pulumi_extra.contrib.aws import register_auto_tagging
from pulumi_extra.contrib.gcp import register_auto_labeling

register_auto_labeling()
register_auto_tagging()

...  # Define your resources

To use policies, add the following to your policy module entrypoint (for example, policy/__main__.py):

import pulumi_policy as policy
from pulumi_extra.contrib.aws import policies as aws_policies
from pulumi_extra.contrib.gcp import policies as gcp_policies

policy.PolicyPack(
    name="default",
    policies=[
        aws_policies.require_tags,
        aws_policies.require_description,
        gcp_policies.require_labels,
        gcp_policies.require_description,
    ],
)

Example policy-config.json:

{
  "all": "advisory",
  "aws:require-description": {
    "exclude": [
      "aws:organizations/*"
    ]
  },
  "aws:require-tags": {
    "exclude": [
      "aws:organizations/*"
    ],
    "required-tags": [
      "Managed-By",
      "pulumi:Organization",
      "pulumi:Project",
      "pulumi:Stack"
    ]
  },
  "gcp:require-labels": {
    "required-labels": [
      "managed-by",
      "pulumi-organization",
      "pulumi-project",
      "pulumi-stack"
    ]
  }
}

You can pass the policy pack to pulumi preview like this:

$ pulumi preview \
  --policy-pack-config=<path_to_your_policy_config.json> \
  --policy-pack=<path_to_your_policy_module>

See the documentation for the full list of supported utilities.

💖 Contributing

Please refer to CONTRIBUTING.md for more information on how to contribute to this project.

📜 License

This project is licensed under the MIT License.

Metadata

Release files for pulumi-extra 0.4.0

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

Source distribution (sdist)

Source distribution for pulumi-extra 0.4.0
File Size Uploaded Provenance Actions
pulumi_extra-0.4.0.tar.gz 129.0 kB With provenance Details for pulumi_extra-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pulumi-extra 0.4.0
File Interpreter ABI Platform Actions
pulumi_extra-0.4.0-py3-none-any.whl Python 3 none any Details for pulumi_extra-0.4.0-py3-none-any.whl

Total release size: 147.7 kB

Release files / pulumi_extra-0.4.0.tar.gz

Download URL pulumi_extra-0.4.0.tar.gz
Size 129.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b65579f3d4f9f0bed0cdafae070d41fc887cbe669b15bd8ce1d37c54d774d3e8
BLAKE2b-256 checksum
How to use checksums
f51c4d3876d668afb28536cf5df8fc1e14362cc3f9c19139afe2522f520e0e7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / pulumi_extra-0.4.0-py3-none-any.whl

Download URL pulumi_extra-0.4.0-py3-none-any.whl
Size 18.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6ed336c9767a91ceeae1c94470afdb5ec99b0170c00b85f0e51d5811c1891c9
BLAKE2b-256 checksum
How to use checksums
2fe1137deb81c7e123cbeb99a8db48c2411d155a90171ca905430989126daddd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Security for pulumi-extra 0.4.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pulumi_extra-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

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.

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