AWS AmazonECS high security documentation change
Summary
Revised documentation about EBS volume permissions for non-root container users
Security assessment
Corrects previous guidance that required root access, promoting better security practices by enabling least-privilege access through automatic group permissions.
Diff
diff --git a/AmazonECS/latest/developerguide/ebs-volumes.md b/AmazonECS/latest/developerguide/ebs-volumes.md index f0332b8e5..08d99ee8c 100644 --- a//AmazonECS/latest/developerguide/ebs-volumes.md +++ b//AmazonECS/latest/developerguide/ebs-volumes.md @@ -49 +49 @@ Consider the following when using Amazon EBS volumes: - * For a container in your task to write to the mounted Amazon EBS volume, you must run the container as a root user. + * For a container in your task to write to the mounted Amazon EBS volume, the container must have appropriate file system permissions. When you specify a non-root user in your container definition, Amazon ECS automatically configures the volume with group-based permissions that allow the specified user to read and write to the volume. If no user is specified, the container runs as root and has full access to the volume. @@ -70 +70 @@ Storage options for tasks -Defer volume configuration to launch time in a task definition +Non-root user behavior