Benchmark: ECS
Description
This benchmark provides a set of controls that detect Terraform AWS ECS resources deviating from security best practices.
Usage
Install the mod:
mkdir dashboardscd dashboardspowerpipe mod initpowerpipe mod install github.com/turbot/steampipe-mod-terraform-aws-compliance
Start the Powerpipe server:
steampipe service startpowerpipe server
Open http://localhost:9033 in your browser and select ECS.
Run this benchmark in your terminal:
powerpipe benchmark run terraform_aws_compliance.benchmark.ecs
Snapshot and share results via Turbot Pipes:
powerpipe benchmark run terraform_aws_compliance.benchmark.ecs --share
Controls
- ECS cluster container insights should be enabled
- ECS cluster logging should be enabled
- ECS cluster logging should be encrypted with KMS CMK
- ECS Fargate services should run on the latest Fargate platform version
- ECS containers should run in non-privileged mode
- ECS containers should be limited to read-only access to root filesystems
- ECS task definition encryption in transit should be enabled
- ECS task definitions should not share the host's process namespace
- ECS Task definition should have different Execution Role ARN and Task Role ARN