High
ECS
Regional
ECS task definitions should configure containers to be limited to read-only access to root filesystems
NISTISO 27001HIPAA
Description
Verifies that ECS task definitions configure containers with read-only access to their root filesystems. Task definitions targeting Windows containers (operatingSystemFamily WINDOWS_SERVER_*) are not evaluated because the readonlyRootFilesystem parameter is unsupported there.
Remediation
To limit container definitions to read-only access to root filesystems, update the task definition to set the readonlyRootFilesystem parameter to true.
Steps
- Open the Amazon ECS console.
- In the left navigation pane, choose Task definitions.
- Select a task definition and choose Create new revision with JSON.
- Add the readonlyRootFilesystem parameter, and set it to true in the container definition.
- Choose Create.
Compliance
NISTISO 27001HIPAA