rich-action-28775
04/06/2021, 2:11 PMpulumi up
using the CLI, I'll have something like the following (python):
main.py
from pulumi import client
from pulumi_aws import s3
# Initialize the Pulumi client
pulumi_client = PulumiClient()
# Provision a S3 bucket
web_bucket = s3.Bucket('s3-example-bucket')
pulumi_client.up()
pulumi_client.destroy()
Now instead of running pulumi up
followed by a pulumi destroy
, running this piece of code can be done by running: python main.py
This is a very raw example, so please tell me if there's anything else you'd like me to elaborate on.
Thanks in advance! :)brave-planet-10645
04/06/2021, 2:15 PMrich-action-28775
04/06/2021, 3:13 PMbroad-dog-22463
04/06/2021, 3:18 PMbillowy-army-68599
04/06/2021, 3:32 PM