https://pulumi.com logo
#general
Title
# general
b

bulky-balloon-31221

01/30/2023, 6:34 AM
Hello community Is there any option to run a script on a remote machine? Something similar to remote exec function from terraform? I checked the "pulumi command" Provider documents, but the guide is very limited to typescript. We are looking for some examples in python run time. Any example repo/guide would be appreciated 🙏
v

victorious-church-57397

01/30/2023, 8:08 AM
theres a python example of how to use the command resource in the python tab
e

echoing-dinner-19531

01/30/2023, 8:47 AM
All the API docs have language selector tabs on them. It defaults to TypeScript but all our docs should have python versions as well.
b

bulky-balloon-31221

01/30/2023, 8:53 AM
I am going through this documents. In our case the main server login happens with multiple tunneling. We login to bastion then another server and from there main server.. This command function works in this situation as well? ( as its based on ssh connection)
l

little-cartoon-10569

01/30/2023, 7:54 PM
No. In this case, you'll have to sort it yourself. You may find that it's easier to do something that runs natively inside the VPC. Maybe provisioning a lambda or an SSM document.