Is there a way to run a bash command after a speci...
# general
Is there a way to run a bash command after a specific component has been created in the cloud? I tried to make a custom resource like below, it executes the bash command while creating the plan (instead of after applying the plan).
Copy code
import pulumi_azure as azure
from pulumi import ComponentResource
from subprocess import run

class BashCode(ComponentResource):
    def __init__(self, name, opts):
        super().__init__("azure:bashcode:BashCode", name, None, opts)
        run(<bash command>)

bash_code = BashCode("bashcode", opts=ResourceOptions(depends_on[<the thing that should be first created in the cloud>]))
There are some examples here-
There is also a local.Command
This is exactly what I was looking for. Thanks. Can I submit a PR to add a python example to readme? I had to look around a bit before I understood how to use it.