This example deploys a simple Alicloud ECS Instance
To deploy your infrastructure, follow the below steps.
After cloning this repo, from this working directory, run these commands:
-
Create a new stack, which is an isolated deployment target for this example:
pulumi stack init
-
Set the required configuration variables for this program:
pulumi config set alicloud:region us-east-1
-
Stand up the VM, which will also boot up your Python web server on port 80:
pulumi up
-
After a couple of minutes, your VM will be ready, and one stack output is printed:
$ pulumi stack output Current stack outputs (1): OUTPUT VALUE publicIp 47.90.136.113
-
From there, feel free to experiment. Simply making edits and running
pulumi up
will incrementally update your VM. -
Afterward, destroy your stack and remove it:
pulumi destroy --yes pulumi stack rm --yes