Starting point for building a Pulumi sample architecture on DigitalOcean.
-
Create a new stack:
$ pulumi stack init digitalocean-py-loadbalanced-droplets
-
Configure the project:
$ pulumi config set --secret digitalocean:token YOURDIGITALOCEANTOKEN
-
Run
pulumi up
to preview and deploy changes:$ pulumi up Previewing update (digitalocean-py-loadbalanced-droplets): ...
Updating (digitalocean-py-loadbalanced-droplets):
Type Name Status
- pulumi:pulumi:Stack digitalocean-py-loadbalanced-droplets-digitalocean-py-loadbalanced-droplets created
- ├─ digitalocean:index:Tag demo-app created
- ├─ digitalocean:index:Tag web-2 created
- ├─ digitalocean:index:Tag web-0 created
- ├─ digitalocean:index:Tag web-1 created
- ├─ digitalocean:index:LoadBalancer public created
- ├─ digitalocean:index:Droplet web-0 created
- ├─ digitalocean:index:Droplet web-2 created
- └─ digitalocean:index:Droplet web-1 created
Outputs: endpoint: "138.197.62.183"
Resources: + 9 created
Duration: 3m2s ```
-
Curl the HTTP server:
curl "$(pulumi stack output endpoint)"
-
Cleanup
$ pulumi destroy $ pulumi stack rm