There are a few different ways to deploy RabbitMQ in a container with AWS ECS. The most common way is to use the AWS ECS-optimized AMI, which has a built-in container agent that makes it easy to launch and manage containers on AWS ECS.
If you want to use a different container agent, you can either launch your own EC2 instance with the desired container agent or use a managed service like AWS Elastic Beanstalk.
Once you have your container agent set up, you'll need to create a task definition for your RabbitMQ container. The task definition specifies the container image to use, the CPU and memory requirements, and other settings.
Next, you'll create a service using the task definition. The service will launch and maintain a specified number of RabbitMQ containers.
Finally, you can create an Elastic Load Balancer (ELB) to route traffic to your RabbitMQ containers.
For more detailed instructions, see the following guide: