Benchmark: Elastic Container Service
Overview
This section contains recommendations for configuring ECS resources and options.
Usage
Install the mod:
mkdir dashboardscd dashboardspowerpipe mod initpowerpipe mod install github.com/turbot/steampipe-mod-aws-compliance
Start the Powerpipe server:
steampipe service startpowerpipe server
Open http://localhost:9033 in your browser and select Elastic Container Service.
Run this benchmark in your terminal:
powerpipe benchmark run aws_compliance.benchmark.foundational_security_ecs
Snapshot and share results via Turbot Pipes:
powerpipe benchmark run aws_compliance.benchmark.foundational_security_ecs --share
Controls
- 1 Amazon ECS task definitions should have secure networking modes and user definitions
- 2 Amazon ECS services should not have public IP addresses assigned to them automatically
- 3 ECS task definitions should not share the host's process namespace
- 4 ECS containers should run as non-privileged
- 5 ECS containers should be limited to read-only access to root filesystems
- 8 Secrets should not be passed as container environment variables
- 9 ECS task definitions should have a logging configuration
- 10 Fargate services should run on the latest Fargate platform version
- 12 ECS clusters should have Container Insights enabled