How do i create a two node ecs cluster?



  • Using the ecs-cli tool.

    $ ecs-cli up --keypair mykey --capability-iam --size 2 --instance-type t2.medium --region us-west-2
    INFO[0000] Created cluster                               cluster=ecs-cli-demo region=us-west-2
    INFO[0001] Waiting for your cluster resources to be created... 
    INFO[0001] Cloudformation stack status                   stackStatus="CREATE_IN_PROGRESS"
    INFO[0062] Cloudformation stack status                   stackStatus="CREATE_IN_PROGRESS"
    INFO[0122] Cloudformation stack status                   stackStatus="CREATE_IN_PROGRESS"
    INFO[0183] Cloudformation stack status                   stackStatus="CREATE_IN_PROGRESS"
    INFO[0243] Cloudformation stack status                   stackStatus="CREATE_IN_PROGRESS"
    

    The cluster name was previously configured using ecs-cli configure, specifying the cluster name.


Log in to reply
 

© Lightnetics 2024