Amazon Elastic Container Service (AWS ECS)

Deploying a new application from scratch

Demo Creating security group

In this guide, we will walk you through creating a security group for your Amazon Elastic Container Service (AWS ECS) application. A security group acts as a virtual firewall that controls network traffic for your devices. While this example uses a very basic rule, remember to configure only the necessary traffic for production environments.

Steps to Create a Security Group

  1. Navigate to the EC2 Dashboard and locate the Security Groups section.

  2. Open the Security Groups page in a new browser tab to simplify navigation.

  3. Click on Create Security Group to begin the configuration.

  4. Set the security group name to "ECS SG" and add a description, for example, "ECS security group".

  5. Add an inbound rule that allows all traffic from any IP.

    Warning

    Allowing all traffic is not recommended for production. It is best to define explicit rules that permit only the required traffic.

  6. Ensure that the security group is associated with the correct VPC—the one hosting your ECS cluster.

  7. Review your settings and click Create Security Group to complete the process.

By following these steps, you have successfully created a basic security group for your AWS ECS application. You can later update these rules to restrict access further as your application requirements evolve.

Note

For more in-depth information on AWS ECS and best practices for security configurations, consider exploring the AWS ECS Documentation.

Watch Video

Watch video content

Previous
Understanding multi container application