Skip to content

Latest commit

 

History

History

digitalocean-py-loadbalanced-droplets

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Deploy this example with Pulumi Deploy this example with Pulumi

Pulumi DigitalOcean Droplets

Starting point for building a Pulumi sample architecture on DigitalOcean.

Running the App

  1. Create a new stack:

    $ pulumi stack init digitalocean-py-loadbalanced-droplets
  2. Configure the project:

    $ pulumi config set --secret digitalocean:token YOURDIGITALOCEANTOKEN
  3. 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 ```

  1. Curl the HTTP server:

    curl "$(pulumi stack output endpoint)"
  2. Cleanup

    $ pulumi destroy
    $ pulumi stack rm