Can we deploy on-premise Sentry in AWS ECS with cloudformation?

Can we deploy on-premise sentry in AWS ECS with cloudformation and use aws redis and RDS postgres.If possible,can you share the documents which we can refer.