copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Set `ReadonlyRootFilesystem` to `true` by default in manifest files

Open efekarakus opened this issue 3 years ago • 0 comments

Ask

To comply with Security Hub's recommendation of [ECS.5] ECS containers should be limited to read-only access to root filesystems. Copilot should consider generating default manifest files with the following field already populated:

name: my-service

storage:
  readonly_root_fs: true

This way existing deployed service won't break, but newer services will comply with ECS.5 by enabling ReadonlyRootFilesystem: true in the CloudFormation template.

efekarakus avatar Sep 19 '22 16:09 efekarakus