Build and generate Python - ionos-cloud/pulumi-ionoscloud GitHub Wiki
Generation:
make tfgen build_python
Create new pulumi project and add ionoscloud plugin:
pulumi new python
pulumi plugin install resource ionoscloud v1.0.0 -f /bin/pulumi-resource-ionoscloud
Install Python SDK:
echo ../pulumi-ionoscloud/sdk/python >> requirements.txt
add the location of the generated sdk in the requirements.txt filesource venv/bin/activate
andpython -m pip install -r requirements.txt
orpulumi install
(make sure the python in the venv is the correct version, otherwise you can recreate it, python3.11 -m venv venv)
Apply configuration:
pulumi up