Skip to main content

Add your description here

Project description

Python Component as Component

cd example/pulumi_project_py
pulumi package gen-sdk ../my-component --out ../generated-sdk --language python
uv add --editable ../generated-sdk/python
pulumi preview
Updating (dev)

View in Browser (Ctrl+O): https://app.pulumi.com/v-julien-pulumi-corp/example/dev/updates/27

     Type                                         Name         Status
 +   pulumi:pulumi:Stack                          example-dev  created (9s)
 +   └─ my-component:index:SelfSignedCertificate  cert         created
 +      └─ tls:index:PrivateKey                   cert-ca      created (0.31s)
 +         ├─ tls:index:PrivateKey                cert-key     created (0.55s)
 +         └─ tls:index:SelfSignedCert            cert-ca      created (1s)

Outputs:
    cert: {
        algorithm  : "ECDSA"
        ca_cert_pem: "-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----\n"
        ecdsa_curve: "P224"
        private_key: [secret]
        rsa_bits   : 2048
        urn        : "urn:pulumi:dev::example::my-component:index:SelfSignedCertificate::cert"
    }

Resources:
    + 5 created

Duration: 11s

Alternatively, add the package with package add, but this requires the Python Pulumi SDK to handle parameterization in sdk/python/lib/pulumi/provider/provider.py.

pulumi package add ../my-component

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pulumi_components_test-0.0.4.tar.gz (38.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pulumi_components_test-0.0.4-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file pulumi_components_test-0.0.4.tar.gz.

File metadata

  • Download URL: pulumi_components_test-0.0.4.tar.gz
  • Upload date:
  • Size: 38.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for pulumi_components_test-0.0.4.tar.gz
Algorithm Hash digest
SHA256 85aec704364841cc95069766cba03731a2c5f184ad4da1cb5ac4eb8f78571f96
MD5 c26fa75ade8f6492d51ef7f0c5c9db50
BLAKE2b-256 d16e5d113d0f25a4668c2ab255aa0f0454aad6f33b7f57e7949bd36abea06008

See more details on using hashes here.

File details

Details for the file pulumi_components_test-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pulumi_components_test-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 37dfda88495880c7875978410e3760508fc90355e49da725a45e4d0aa03bf9bc
MD5 3699c98701912e891953e24d6dcd4e50
BLAKE2b-256 b71ee2c32e03cab0bb7b67cd8e2f3f1f6060f8c522906e272da3d70fd5e76646

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page