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.1.tar.gz (38.6 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.1-py3-none-any.whl (1.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pulumi_components_test-0.0.1.tar.gz
  • Upload date:
  • Size: 38.6 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.1.tar.gz
Algorithm Hash digest
SHA256 3802821e23cec48041077d3ef128a3f1b129aa8d0b0f4bb20a5556cfed467d13
MD5 37f07089055a739e492bdc34d312aed8
BLAKE2b-256 7a49224ab606e4607546d8e9713a6efe0ef1386e1d727eb58293c3e13edf40e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pulumi_components_test-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8b82badb338be647520cae4699238746da1ccd10b457eb7f164450986b83e874
MD5 bcf47afb83059102553d202529195a97
BLAKE2b-256 6cfc114a8d4eee823ffaad2891790e697efac89f9b316f6c2b0b49ec0a8b4480

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