How to create EC2 node with swap enabled?

By default rancher create node on EC2 without swap.

The issue is that if i run too much containers, the node crashe.

I know that is it is not good to swap on the node, but it’s not a reason to crash the node because the swap is disabled .

Do you know how to enable the swap during the EC2 création into Rancher ?