As an amazon ec2 customer you have root access to the operating system of your container instances enabling you to take ownership of the operating system s security settings as well as load and configure additional software components for security capabilities such as monitoring patch management log management and host intrusion detection.
Aws container security group.
You can create a security group and add rules that reflect the role of the instance that s associated with the security group.
After applying security groups at the pod level your application and node group architecture can be simplified as shown below.
Aws eks describe cluster name cluster name query cluster resourcesvpcconfig clustersecuritygroupid.
If you add a security group rule using the aws cli the console or the api we automatically set the source or destination cidr block to the canonical form.
On the configure security group page use a security group to define firewall rules for your container instance.
If you re using an amazon efs file system with your amazon ec2 instances the security.
For example if you specify 100 68 0 18 18 for the cidr block we create a rule with a cidr block of 100 68 0 0 18.
Network security rules that span pod to pod and pod to external aws service traffic can be defined in a single place with ec2 security groups and applied to applications with kubernetes native apis.
Configure security group when you are done.
If your cluster is running kubernetes version 1 14 and platform version eks 3 or later then we recommend that you add the cluster security group to all existing and future node groups.
You can customize aws security groups according to your needs.
These rules specify which incoming network traffic is delivered to your container instance.
For example an instance that s configured as a web server needs security group rules that allow inbound http and https access.
Container instances do require external network access to communicate with the amazon ecs service endpoint.
How aws security groups work.
It s better if you give a group a descriptive name so you can choose the best one for your needs without having to look into the ruleset for that particular group.
If you ve already signed up for amazon web services aws and have been using amazon elastic compute cloud amazon ec2 you are close to being able to use amazon ecs.
Ecs is a great choice to run containers for several reasons.
Amazon elastic container service amazon ecs is a fully managed container orchestration service.
Aws provides strong security isolation between your containers ensures you are running the latest security updates and gives you the ability to set granular access permissions for every container.
For more information see security groups for your vpc in the amazon vpc user guide.
You need to give each group a unique name that will allow you to select it from a menu.