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.3.3

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.3.3
File Size Uploaded
pulumi_extra-0.3.3.tar.gz 125.5 kB Details

Built distribution (wheel)

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

Total release size: 144.1 kB

Release files / pulumi_extra-0.3.3.tar.gz

Download URL pulumi_extra-0.3.3.tar.gz
Size 125.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d4a42c4e5b651585f33304a05c25c34419d68900f988206a697c5e528de4fabb
BLAKE2b-256 checksum
How to use checksums
e66e73ff235a685ed3e2d99b810287d0a52a130d1f15c4a69b668645e3c19a98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 2, 2026.

Transparency log

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

Download URL pulumi_extra-0.3.3-py3-none-any.whl
Size 18.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5ff8e41038bd39b9ab6fbf41d3e0685d6c3cca758eae29466afd014e01fab09
BLAKE2b-256 checksum
How to use checksums
33e4110d89bd3dbe135db577a6010631366e5c299f837601bb55535d1d260f06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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