Skip to content

Latest commit

 

History

History
 
 

alicloud-ts-ecs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Instance Using Alicloud ECS

Deploy

This example deploys a simple Alicloud ECS Instance

Deploying the App

To deploy your infrastructure, follow the below steps.

Prerequisites

  1. Install Pulumi
  2. Configure Alicloud Credentials

Steps

After cloning this repo, from this working directory, run these commands:

  1. Create a new stack, which is an isolated deployment target for this example:

    pulumi stack init
  2. Set the required configuration variables for this program:

    pulumi config set alicloud:region us-east-1
  3. Stand up the VM, which will also boot up your Python web server on port 80:

    pulumi up
  4. 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
  5. From there, feel free to experiment. Simply making edits and running pulumi up will incrementally update your VM.

  6. Afterward, destroy your stack and remove it:

    pulumi destroy --yes
    pulumi stack rm --yes