New ECS Instance registration with ECS cluster Using CMD and Console (2024)

New ECS Instance registration with ECS cluster Using CMD and Console (1)

New ECS Instance registration with ECS cluster Using CMD and Console (2) New ECS Instance registration with ECS cluster Using CMD and Console (3)

vaibhavi_shah for AWS Community ASEAN

Posted on

New ECS Instance registration with ECS cluster Using CMD and Console (4) New ECS Instance registration with ECS cluster Using CMD and Console (5) New ECS Instance registration with ECS cluster Using CMD and Console (6) New ECS Instance registration with ECS cluster Using CMD and Console (7) New ECS Instance registration with ECS cluster Using CMD and Console (8)

Amazon ECS makes it easy to deploy, manage, and scale Docker containers running applications, services, and batch processes. Amazon ECS places containers across your cluster based on your resource needs and is integrated with familiar features like Elastic Load Balancing, EC2 security groups, EBS volumes and IAM roles

Step-1: Go to the ecs service and click on the cluster.

New ECS Instance registration with ECS cluster Using CMD and Console (9)

Step-2: select the create cluster option and select Ec2 linux + networking

New ECS Instance registration with ECS cluster Using CMD and Console (10)

Step-3: configure the details as below

New ECS Instance registration with ECS cluster Using CMD and Console (11)

Step-4: Cluster is createed as below.

New ECS Instance registration with ECS cluster Using CMD and Console (12)

Step-5: Go to the view cluster.

New ECS Instance registration with ECS cluster Using CMD and Console (13)

Step-6: Go to the ECS-Instances

As per the ECS configuration, Auto scalling group is created and one ECS instance is launched from Autoscalling group.

New ECS Instance registration with ECS cluster Using CMD and Console (14)

Step-7: Move to the Launch configuration of autoscalling group.

New ECS Instance registration with ECS cluster Using CMD and Console (15)

Step-8: Under the details tab view the userdata script.

New ECS Instance registration with ECS cluster Using CMD and Console (16)

Variable ECS_CLUSTER attach the ecs-instance to the define cluster.

Step-9: ssh into the created instance

New ECS Instance registration with ECS cluster Using CMD and Console (17)

Step-10: View ecs.config file for the configuration. Path for file is /etc/ecs/ecs.config

New ECS Instance registration with ECS cluster Using CMD and Console (18)

It is very useful when we work with multi cluster environment.

These is done by docker agent.

For verify these follow the below steps.

Step-11: Run the Docker ps command which gives the whole information.

New ECS Instance registration with ECS cluster Using CMD and Console (19)

Registration details can be also find from docker log as below.

Step-12: Docker Log

Command for docker log

docker logs container-id

New ECS Instance registration with ECS cluster Using CMD and Console (20)

Top comments (2)

Subscribe

New ECS Instance registration with ECS cluster Using CMD and Console (22)

Raphael Jambalos

Avid Reader, Curious Learner. AWS Certified ☁️

  • Location

    Manila

  • Education

    University of the Philippines

  • Work

    Senior Cloud Developer at eCloudvalley

  • Joined

Hi Havi! Interesting experiment on ECS! I actually used to do this all the time back on my previous employer. I go on to do the command docker exec -it /bin/bash so I can enter the bash shell of my containers. I did this so I can gain console access to the task so I can run rails console on them and do my data requests.

New ECS Instance registration with ECS cluster Using CMD and Console (24)

brianreinhold

  • Education

    Brandeis, MIT

  • Work

    Medical device communication standards

  • Joined

Fails at step 6. There are no ESC instances

For further actions, you may consider blocking this person and/or reporting abuse

New ECS Instance registration with ECS cluster Using CMD and Console (2024)
Top Articles
Latest Posts
Article information

Author: Manual Maggio

Last Updated:

Views: 6387

Rating: 4.9 / 5 (49 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Manual Maggio

Birthday: 1998-01-20

Address: 359 Kelvin Stream, Lake Eldonview, MT 33517-1242

Phone: +577037762465

Job: Product Hospitality Supervisor

Hobby: Gardening, Web surfing, Video gaming, Amateur radio, Flag Football, Reading, Table tennis

Introduction: My name is Manual Maggio, I am a thankful, tender, adventurous, delightful, fantastic, proud, graceful person who loves writing and wants to share my knowledge and understanding with you.