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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pulumi_components_test-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 0b5767c7a0200ff6619c876cd5748adc52d7fbc39e2cb78d1bde5cd6375a308a
MD5 80b6244ad9c44d8dcd6ccc85ada99079
BLAKE2b-256 0549423bd87060dcad24e56631867b03a480011b5bf551ae15de052188771887

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pulumi_components_test-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0af446984e61aaa40d75e2fc4ff0d45bb80cbc7cd0cb191147b70dc0935e25ff
MD5 4cdaca4a55e4cada71c24b106b19d06a
BLAKE2b-256 493c4af9ae41b299b8786dc0f4b16a3ccaf9ba324a0806fe6583ed79e0404c05

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