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.2.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.2-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pulumi_components_test-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 5c1b528c9600f87a8a66ab8ada657e38ba326915494d50f1d514d4cf71f0e046
MD5 2175f146fdd969748ef127747f6aaeee
BLAKE2b-256 9c395432ad129bbb139841161c9ad0da6079dbfb65414e550908fa64f52d7669

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pulumi_components_test-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 70a4937216e65921f661ec1052be78824d5885c160b22922fc797cab05a6f3c6
MD5 cda6260f57bb0dbe94b98ea514d0ad4b
BLAKE2b-256 cde9bd35639136a02d17d074630e4f17e4f72c9a98ce4d4d051e2d2e92a7dd22

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