RedisInsight on AWS ECS

Hey, I was trying to setup RedisInsight on AWS ECS, but was getting a permissions error. Seems like it’s a common issue and is described under the Docker setup page here: Install RedisInsight on Docker | Redis Documentation Center
However I’m not sure how I would do it when running it as a container? A standard way to run a container using AWS CDK would be something like:

const redisInsightAppTaskDef = new cdk.aws_ecs.FargateTaskDefinition(
      this,
      "RedisInsight-App-Taskdef",
      {
        memoryLimitMiB: 2048, // Default is 512
        cpu: 512, // Default is 256
      }
    );

    redisInsightAppTaskDef.addContainer("RedisInsight-App-Container", {
      image: cdk.aws_ecs.ContainerImage.fromRegistry(
        "redislabs/redisinsight:latest"
      ),
      portMappings: [
        {
          containerPort: 8001,
        },
      ],
      environment: {
        RIPORT: 8001
      },
    });

Any ideas?

Permissions error:

ERROR 2023-03-09 11:34:12,640 redisinsight_startup Error running web app
Traceback (most recent call last):
File "./startup.py", line 138, in run_web_app
File "./startup.py", line 115, in start_webserver
File "/usr/local/lib/python3.11/site-packages/waitress/__init__.py", line 13, in serve
...........

i have meet same error
you can solve it by
add user root in dockerfile to build your onw image to deploy
my dockerfile

FROM redislabs/redisinsight:latest
USER root

ENV RILOGLEVEL=DEBUG
ENV RIHOST=0.0.0.0
ENV RIPORT=80

EXPOSE 80

ENTRYPOINT ["bash", "./docker-entry.sh"]
CMD ["python", "entry.pyc"]