ELK on AWS Fargate

Getting this error,

[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

is there a way to fix it using fargate ?
https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-prod-mode solution provided here needs host which i think is not there on fargate