This CloudFormation template creates a security group that allows inbound access to a MySQL instance. It allows connections on port 3306 and is open to all IP addresses.

CloudFormation Template